Added a method to KRAudioManager to allow the CircaAppDelegate to turn off the audio when the app is deactivated

--HG--
branch : nfb
This commit is contained in:
Peter
2014-03-18 15:55:31 -07:00
parent 8527c88f1d
commit b5a8c2ae93
2 changed files with 6 additions and 1 deletions

View File

@@ -2057,3 +2057,8 @@ void KRAudioManager::renderLimiter()
unsigned long numframes = KRENGINE_AUDIO_BLOCK_LENGTH;
audioLimit_Stereo(output, numframes);
}
void KRAudioManager::goToSleep()
{
cleanupAudio();
}

View File

@@ -144,6 +144,7 @@ public:
KRAudioBuffer *getBuffer(KRAudioSample &audio_sample, int buffer_index);
static void mute(bool onNotOff);
void goToSleep();
void startFrame(float deltaTime);
@@ -193,7 +194,6 @@ private:
void cleanupSiren();
audio_engine_t m_audio_engine;
// OpenAL Handles