mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-18 01:51:40 +00:00
Partially implement OpenALSoundRenderer::SetInactive
This commit is contained in:
parent
42fdc3c059
commit
906b828d87
1 changed files with 13 additions and 1 deletions
|
@ -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)
|
void OpenALSoundRenderer::Sync(bool sync)
|
||||||
|
|
Loading…
Reference in a new issue