Replies: 1 comment 2 replies
-
I'd make my own custom ISampleProvider that manages various instances of AudioFileReader to play the samples. In the Read method, when it reaches then end of a sample, it can either loop back to the beginning by resetting the position to 0, or start to play a new one. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am looking for a way to play samples one after the other.
Sounds simple at first, but the following is needed:
The samples are processed accordingly. They start and end with a 0 level to prevent cracking.
From what I have read about NAudio so far, I am sure that this can be solved with NAudio.
My attempt via PlaybackStopped results in silence between samples and is not to be used like this.
wavePlayer.PlaybackStopped += OnPlaybackStopped;
Can anyone give me some support? At least show me the way?
Thank you and best regards
Beta Was this translation helpful? Give feedback.
All reactions