If i clear BufferedWaveProvider when its empty, i get an exception that it doesn't point to an object.
This should be fixed, or rather, adjustable, as in some cases one could want to be certain that it's empty, and not want to close the application (or force Try/Catch) just because it happened to be empty).
Comments: The following code works just fine for me: ``` var b = new BufferedWaveProvider(new WaveFormat()); b.ClearBuffer(); ``` What version of NAudio are you using?
This should be fixed, or rather, adjustable, as in some cases one could want to be certain that it's empty, and not want to close the application (or force Try/Catch) just because it happened to be empty).
Comments: The following code works just fine for me: ``` var b = new BufferedWaveProvider(new WaveFormat()); b.ClearBuffer(); ``` What version of NAudio are you using?