Exemple #1
0
void CAudioChannel::SetVolume (int nVolume)
{
if (m_info.bPlaying) {
	m_info.nVolume = FixMulDiv (nVolume, audio.Volume (), I2X (1));
#if USE_SDL_MIXER
	if (gameOpts->sound.bUseSDLMixer)
		Mix_VolPan (this - audio.Channel (), m_info.nVolume, -1);
#endif
	}
}
Exemple #2
0
void SDLCALL Mix_FinishChannel (int nChannel)
{
audio.Channel (nChannel)->SetPlaying (0);
}