NAudio looping an audio file

本秂侑毒 提交于 2019-12-01 03:36:55

问题


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.


回答1:


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




回答2:


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




回答3:


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



来源:https://stackoverflow.com/questions/8792456/naudio-looping-an-audio-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!