简体   繁体   English

具有任何库的C ++ Play MP3循环缓冲区

[英]C++ Play MP3 Cycle Buffer with any library

I try to play a char array buffer with mp3 data that I am filling with an http (shotcast) mp3 stream in a loop. 我尝试使用循环填充http(shotcast)mp3流的mp3数据播放char数组缓冲区。 When the buffer is full the write function begins at the beginning. 当缓冲区已满时,写入功能从头开始。 I have to play this buffer now somehow and maybe check the byte playback position to check if the buffer is still be enough. 我现在必须以某种方式播放此缓冲区,并且可能要检查字节播放位置以检查缓冲区是否仍然足够。 I already tried the Irrklang library and asked in the Irrklang forum, but it's not possible. 我已经尝试过Irrklang库,并在Irrklang论坛中进行了询问,但这是不可能的。 Maybe anyone knows a simple library for that? 也许有人知道一个简单的库吗? OS: Windows 操作系统:Windows

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM