public void GetSamplesAsync(short[] samples) { short[] sampin; int numsamp; _input.GetSamplesSync(out sampin, out numsamp); _buffer.EnqueueSamples(sampin, numsamp); _buffer.OutputSamples(samples, samples.Length / 2); }
public void PullSamples(IAsyncSoundProvider source) { Array.Clear(pullBuffer, 0, 1470); source.GetSamples(pullBuffer); Buffer.EnqueueSamples(pullBuffer, 735); }