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

New Post: tracking stream duration

$
0
0

once you have converted to PCM, the AverageBytesPerSecond property of the resulting WaveFormat can be used in conjunction with the total number of bytes Read out of the converted stream to keep track of progress. You might need to create a simple IWaveProvider implementation to wrap around your playback IWaveProvider to keep track of this number.

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>