- Fixed default.cbd and Makefile.mingw for current code state.
- New: Pausing the game (through any means, not just the pause key) now pauses sound effects as well as music. "PauseMusicInMenus" has been added as a MAPINFO flag to also pause the music when a menu or the console are open. SVN r134 (trunk)
This commit is contained in:
parent
f8bdceab38
commit
62b7dd3efc
19 changed files with 115 additions and 35 deletions
|
|
@ -739,7 +739,7 @@ long FMODSoundRenderer::StartSound3D (sfxinfo_t *sfx, float vol, int pitch, int
|
|||
|
||||
void FMODSoundRenderer::StopSound (long handle)
|
||||
{
|
||||
if (!handle ||!ChannelMap)
|
||||
if (!handle || !ChannelMap)
|
||||
return;
|
||||
|
||||
handle--;
|
||||
|
|
@ -752,6 +752,16 @@ void FMODSoundRenderer::StopSound (long handle)
|
|||
}
|
||||
}
|
||||
|
||||
void FMODSoundRenderer::SetSfxPaused (bool paused)
|
||||
{
|
||||
for (int i = 0; i < NumChannels; ++i)
|
||||
{
|
||||
if (ChannelMap[i].soundID != -1)
|
||||
{
|
||||
FSOUND_SetPaused (ChannelMap[i].channelID, paused);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool FMODSoundRenderer::IsPlayingSound (long handle)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue