/* * チャネルのボリュームをセットする */ bool set_sound_volume(int stream, float vol) { assert(pDS != NULL); assert(stream >= 0 && stream < MIXER_STREAMS); return SetBufferVolume(stream, vol); }
void CWinGlkOGGSound::SetVolume(int iVolume) { // The SetVolume() call to DirectSound requires a volume // in 100ths of a decibel. SetBufferVolume((LONG)DecibelVolume(iVolume) * 100L); }