Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用 Nadio 流式传输声音。我遇到的问题是我无法写入 WaveStream。我尝试制作一个较小的 WaveStream 队列,但我认为这不是要走的路。如何通过网络流式传输 mp3 文件或波形文件并开始播放,即使它没有完全传输?
看看BufferedWaveProvider,它可以用作 WaveOut 的输入,并允许您将缓冲区排队以进行播放。但是,您需要使用 MP3Frame 类自己逐帧解码 MP3 文件,因为 MP3FileReader 期望能够重新定位到末尾。
BufferedWaveProvider