Properly pausing OpenAL device using the extension alcDevicePauseSOFT (fixes #83)

This commit is contained in:
fysx
2014-09-09 10:29:56 +02:00
parent 70eef137ae
commit 8df94d2a8a
4 changed files with 7 additions and 0 deletions
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