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

New Post: Error :- MemoryAllocationError calling waveOutOpen while playing in a loop

$
0
0

you should be doing your waveOutStream Init and Play outside the loop, and use a BufferedWaveProvider to feed wave out. Inside the loop, you shuold put the data received into the BufferedWaveProvider.

Also, from your code, it looks like you are on a background thread so I recommend using WaveOutEvent instead of WaveOut for playback.

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>