コード例 #1
0
ファイル: dsound.c プロジェクト: ktabata/suika2
/*
 * チャネルのボリュームをセットする
 */
bool set_sound_volume(int stream, float vol)
{
	assert(pDS != NULL);
	assert(stream >= 0 && stream < MIXER_STREAMS);

	return SetBufferVolume(stream, vol);
}
コード例 #2
0
void CWinGlkOGGSound::SetVolume(int iVolume)
{
  // The SetVolume() call to DirectSound requires a volume
  // in 100ths of a decibel.
  SetBufferVolume((LONG)DecibelVolume(iVolume) * 100L);
}