private bool ChangeVolume(int nIndex, float fVolume) { if (this.m_fPrevVolume[nIndex] == fVolume) { return(false); } if (nIndex == 0) { TsAudio.MasterVolume = fVolume; } else { TsAudio.SetVolumeScaling((EAudioType)(nIndex - 1), fVolume); TsAudio.RefreshAudioVolumes((EAudioType)(nIndex - 1)); } this.m_fPrevVolume[nIndex] = fVolume; return(true); }