private void InitialiseSampler() { // DebugHelper.WriteLine("InitialiseSampler"); // create mixer channel _samplerMixer = new MixerChannel(this); _samplerMixer.SetVolume((decimal)DefaultFadeOutStartVolume); _samplerMixer.CutBass(); _samplerOutputSplitter = new OutputSplitter(_samplerMixer, SpeakerOutput, MonitorOutput); _samplePlayer = new TrackSamplePlayer(this); _samplerMixer.AddInputChannel(_samplePlayer.Output); _samplerMixer.SetVolume(50); // DebugHelper.WriteLine("END InitialiseSampler"); }
/// <summary> /// Sets the volume (A value between 0 and 100) /// </summary> /// <param name="volume">A value between 0 and 100</param> public void SetVolume(decimal volume) { _mixer.SetVolume(volume); }