This project has moved and is read-only. For the latest updates, please go here.

Changing the incoming buffer size in WaveIn

Nov 29, 2016 at 8:06 PM
Hi,

I'm using Naudio dll to read and process data. I want to know if it is possible to change the buffer size that each buffer is being read in. This is to see if processing times are more efficient if each buffer is a smaller.

CreateBuffers() in WaveIn seems to create the buffer size:
int bufferSize = BufferMilliseconds * WaveFormat.AverageBytesPerSecond / 1000;

I tried changing WaveFormat.AverageBytesPerSecond but it is read-only.