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:
@@ -2057,3 +2057,8 @@ void KRAudioManager::renderLimiter()
|
||||
unsigned long numframes = KRENGINE_AUDIO_BLOCK_LENGTH;
|
||||
audioLimit_Stereo(output, numframes);
|
||||
}
|
||||
|
||||
void KRAudioManager::goToSleep()
|
||||
{
|
||||
cleanupAudio();
|
||||
}
|
||||
|
||||
@@ -144,6 +144,7 @@ public:
|
||||
KRAudioBuffer *getBuffer(KRAudioSample &audio_sample, int buffer_index);
|
||||
|
||||
static void mute(bool onNotOff);
|
||||
void goToSleep();
|
||||
|
||||
void startFrame(float deltaTime);
|
||||
|
||||
@@ -191,7 +192,6 @@ private:
|
||||
void cleanupAudio();
|
||||
void cleanupOpenAL();
|
||||
void cleanupSiren();
|
||||
|
||||
|
||||
|
||||
audio_engine_t m_audio_engine;
|
||||
|
||||
Reference in New Issue
Block a user