Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: Streaming Audio Data with WaveOutDevice and a WaveProvider

$
0
0
You should only call init and play on the output device once. After that, just call AddSamples on the bufferedWaveprovider whenever you have new audio to play.
Also, make sure BufferedWaveProvider.PadwithZeroes is set to true which means that the Read method never returns 0, which would cause playback to stop if no audio was queued up.

Mark

Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>