protected void SetPlaybackVolume(VoiceParm parm)
 {
     playbackVolume = parm.ret.fValue;
     FMOD.RESULT result = SetPlaybackVolumeInternal(Math.Min(1.0f, playbackVolume));
     CheckRetCode(parm, (int)result);
     log.DebugFormat(voiceMgr, "VoiceChannel.SetPlaybackVolume: playbackVolume {0}", playbackVolume);
 }
 public void CheckRetCode(VoiceParm parm, int retcode)
 {
     if (retcode != 0)
         log.ErrorFormat(voiceMgr, "BasicChannel.CheckRetCode: Setting parm '{0}' to value '{1}' resulted in error code {3}",
             parm.name, VoiceParmSet.StringValue(parm), retcode);
 }