public BasicAudioController(ISoundOut programSoundOut, int channels, int sampleRate) { mixer = new SoundMixer(channels, sampleRate) { FillWithZeros = true, DivideResult = true }; monoToStereoChannelMatrix = new ChannelMatrix(ChannelMask.SpeakerFrontCenter, ChannelMask.SpeakerFrontLeft | ChannelMask.SpeakerFrontRight); monoToStereoChannelMatrix.SetMatrix( new[, ] { { 1.0f, 1.0f } }); soundOut = programSoundOut; }
public MIDIAudioController(ISoundOut programSoundOut) { frequencies = new List <double>(); mixer = new SoundMixer(2, sampleRate) { FillWithZeros = true, DivideResult = true }; monoToStereoChannelMatrix = new ChannelMatrix(ChannelMask.SpeakerFrontCenter, ChannelMask.SpeakerFrontLeft | ChannelMask.SpeakerFrontRight); monoToStereoChannelMatrix.SetMatrix( new[, ] { { 1.0f, 1.0f } }); soundOut = programSoundOut; midiKeys = new List <MidiKeyPlaying>(); }