5

I already have the code of the mp3/wma audio playing/stopping and browsing. I just need to know how can I loop the song? Thank you.

user1139211
  • 105
  • 1
  • 2
  • 5

3 Answers3

7

Here's a blog post I wrote on how to loop audio using NAudio.

Mark Heath
  • 46,816
  • 28
  • 132
  • 191
4

Use an array for yours files name, then you can free to loop the song.

Coder
  • 1,803
  • 4
  • 18
  • 18
0

Just handle PlaybackStopped Event, then you can play again the audio.

nabeghe
  • 679
  • 9
  • 17