public int Read(float[] buffer, int offset, int count) { foreach (var mixerInput in Sequencer.GetNextMixerInputs(count)) { mixer.AddMixerInput(mixerInput); } // now we just need to read from the mixer var samplesRead = mixer.Read(buffer, offset, count); while (samplesRead < count) { buffer[samplesRead++] = 0; } return(samplesRead); }