0

我目前正在开发一个可以播放无线电流的项目。这些流将使用 axWindowsMediaPlayer 控件播放。但是我如何阅读流标题+艺术家?

来自德国的问候,Max

4

1 回答 1

0

从文档...

char *BASS_ChannelGetTags(
DWORD handle,
DWORD tags)

会是低音的一部分。

 // get a pointer to the 1st tag
char *icytags=BASS_ChannelGetTags(channel, BASS_TAG_ICY);
    if (icytags)
       while (*icytags) {
    printf("%s\n", icytags); // display the tag
    comments+=strlen(icytags)+1; // move on to next tag
} 

这是 ogg 注释的代码,但替换了 icytags。我还没试过,但如果你看这里: BASS_ChannelGetTags 的 BASS Docs

它可能会有所帮助。其他标签是其他数据结构,您会以不同的方式处理它们。

于 2014-01-29T06:27:20.987 回答