mirror of
https://github.com/love2d/love-android.git
synced 2026-08-12 08:31:04 +02:00
Properly pausing OpenAL device using the extension alcDevicePauseSOFT (fixes #83)
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 35 KiB |
Binary file not shown.
@@ -192,6 +192,9 @@ void Audio::pause(love::audio::Source *source)
|
||||
void Audio::pause()
|
||||
{
|
||||
pool->pause();
|
||||
#ifdef LOVE_ANDROID
|
||||
alcDevicePauseSOFT (device);
|
||||
#endif
|
||||
}
|
||||
|
||||
void Audio::resume(love::audio::Source *source)
|
||||
@@ -201,6 +204,9 @@ void Audio::resume(love::audio::Source *source)
|
||||
|
||||
void Audio::resume()
|
||||
{
|
||||
#ifdef LOVE_ANDROID
|
||||
alcDeviceResumeSOFT(device);
|
||||
#endif
|
||||
pool->resume();
|
||||
}
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
#else
|
||||
#include <AL/alc.h>
|
||||
#include <AL/al.h>
|
||||
#include <AL/alext.h>
|
||||
#endif
|
||||
|
||||
namespace love
|
||||
|
||||
Reference in New Issue
Block a user