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

New Post: Playing ALaw memorystream

$
0
0

Thanks Mark!

It works!

Have no idea if this is completely correct, but it works and I'm happy with it.

memStream.Position = 0;
using (RawSourceWaveStream NewReader = new RawSourceWaveStream(memStream, format))
{
	WaveStream ws = WaveFormatConversionStream.CreatePcmStream(NewReader);
                
	WaveOut wo = new WaveOut();
	wo.Init(ws);
	wo.Play();
	NewReader.Close();
}


Viewing all articles
Browse latest Browse all 5831

Trending Articles



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