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

New Post: Start/End Position to play subclip?

$
0
0

yes, creating your own WaveStream / IWaveProvider is the way to go. You would pass in a source stream to the constructor, and then in the Read method just read from the section of the source stream you want to. For looping, you would need to reposition the source stream once you have read up to the ned position. Have a look at LoopStream.cs in NAudioDemo to see looping in action. You would just need to change where it repositions to, and how it decides when it has got to the end.

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>