开发者

Appending to a WaveStream

I am trying to stream sound using Naudio. The thing I am having trouble with is that I can't write to a WaveStream. I tried making 开发者_开发问答a queue of smaller WaveStream but I don't think this is not the way to go. How can I stream an mp3 file, or wave file over the network and start playing it even if it is not completely transferred?


Have a look at the BufferedWaveProvider, it can be used as an input to WaveOut and allows you to queue up buffers for playback. You would however need to decode the MP3 file frame by frame yourself using the MP3Frame class, as the MP3FileReader expects to be able to reposition to the end.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜