This project has moved. For the latest updates, please go here.

BufferedWaveProvider run out

Mar 1, 2012 at 11:51 AM

Hi all.

We are doing a stream audio application and using BufferedWaveProvider to try to provide a smooth audio sensation. Although we have a thread trying to track the buffer filling level to avoid it to be run out, very occasionally this circumstance seems to happen; in this case, a very stron noise appears until we restart the player.

Does anybody know about a way to avoid this noise to appear?

Thanks for your help and kind regards.

MHU

Coordinator
Mar 1, 2012 at 11:54 AM

BufferedWaveProvider should just be returning zeros if there is no data in the buffer, so you should hear silence. Are you using NAudio 1.5?

Mar 1, 2012 at 12:04 PM

I think so. The .dll files are created at 2011 - 12 -118 21:03. To give more information, it seems that NAudio arises an exception prior to the noise to appear (I don't kow what, because it doesn't progess to the application).

Coordinator
Mar 1, 2012 at 12:10 PM

if you can debug with break on all exceptions set in Visual Studio, it would help to know the details of the exception being thrown