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

New Post: Start/End Position to play subclip?

$
0
0

Hi folks,

I've been asked to allow playback of a sub section of an audio file.  I need to allow a Start/End Position to be set and probably to toggle looped playback.


I'm new to NAudio and have started looking at the source and demos but if anyone can give me a heads up on how I should get started it would be great.

So far the closest I can find to what I want to do is in a tutorial linked from the Documentation for playing multiple samples at once.

It doesn't do exactly what I want but I'm assuming, based on it, that I need to create my own implementation of WaveStream that overrides Read to return bytes between a set Start/End Position.

 

Any/all feedback would be appreciated.

 

Jon


Viewing all articles
Browse latest Browse all 5831

Trending Articles



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