- Added S_ChangeSoundVolume() to change the volume of an already playing sound, accessible

through the new ACS function SoundVolume.

SVN r4318 (trunk)
This commit is contained in:
Randy Heit 2013-06-01 17:46:50 +00:00
commit 1b9c71b252
7 changed files with 73 additions and 1 deletions

View file

@ -2053,6 +2053,20 @@ void FMODSoundRenderer::StopChannel(FISoundChannel *chan)
}
}
//==========================================================================
//
// FMODSoundRenderer :: ChannelVolume
//
//==========================================================================
void FMODSoundRenderer::ChannelVolume(FISoundChannel *chan, float volume)
{
if (chan != NULL && chan->SysChannel != NULL)
{
((FMOD::Channel *)chan->SysChannel)->setVolume(volume);
}
}
//==========================================================================
//
// FMODSoundRenderer :: GetPosition