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
  • 115
  • 1
  • 2
  • 5

3 Answers3

7

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

Mark Heath
  • 48,273
  • 29
  • 137
  • 194
4

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

Coder
  • 1,923
  • 4
  • 18
  • 18
1

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

Hadi Akbarzadeh
  • 750
  • 10
  • 18