Partially implement OpenALSoundRenderer::SetInactive

This commit is contained in:
Chris Robinson 2014-06-20 00:41:19 -07:00
parent 42fdc3c059
commit 906b828d87

View file

@ -1350,8 +1350,20 @@ void OpenALSoundRenderer::SetSfxPaused(bool paused, int slot)
}
}
void OpenALSoundRenderer::SetInactive(SoundRenderer::EInactiveState)
void OpenALSoundRenderer::SetInactive(SoundRenderer::EInactiveState state)
{
switch(state)
{
case SoundRenderer::INACTIVE_Active:
alListenerf(AL_GAIN, 1.0f);
break;
/* FIXME: This doesn't stop anything. */
case SoundRenderer::INACTIVE_Complete:
case SoundRenderer::INACTIVE_Mute:
alListenerf(AL_GAIN, 0.0f);
break;
}
}
void OpenALSoundRenderer::Sync(bool sync)