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

New Post: Playing Audio File Intermittently With WaveStream

$
0
0
Hello,

Using 2 DirectSoundOut objects I am trying to repeatedly trigger a short wave file(100ms) clip with sinewave stream. I attempted to use a System.Timer and pass a double interval argument to trigger file play. This is all happening via UI slider control. All attempts have wreaked much havoc in terms of threading conflicts. Would it be better to dump the samples from file into a buffer and call from that? It only needs to play once and then pause apx .5 seconds, play again etc.

Thanks for your consideration.

Viewing all articles
Browse latest Browse all 5831

Latest Images

Trending Articles



Latest Images