0
0

I can I abstract the MP3 ID3 tagging from the shoutcast stream.

  • You must to post comments
0
0

[quote="daviscd01":1k5mut7w]I can I abstract the MP3 ID3 tagging from the shoutcast stream.[/quote:1k5mut7w]

Assuming you meant extract…

Yes,

Sound::getTag

scan for tag name TITLE and ARTIST, which are the ones basically holding the information….

For webcasts, this information comes in gradually. So when the station changes music, new tags will pop up for you to grab and display.

  • You must to post comments
0
0

AT First is was not working for me. Then I figure out what the problem was;

First for a shoutcast stream FMOD reads the Title and Artist tags that are part of the Shoutcast tagging and not the metadata from the mp3 tagging.

The second problem with I was doing an ERRCHECK with result which was given me TOO MANYCHANNEL error

The code below works fine for reading Artist and Title information from a shoutcast stream.
if (sound.getTag(null, -1, ref tag) != FMOD.RESULT.OK)
{
break;
}
else if (tag.datatype == FMOD.TAGDATATYPE.STRING)
{
[color=cyan:rxj8l0cs] if (Convert.ToString(result=sound.getTag("TITLE", 0, ref tag)) == "OK")
{
listBox1.Items.Add(result = sound.getTag("TITLE", 0, ref tag));[/color:rxj8l0cs] [color=violet:rxj8l0cs]// This line is not needed just for troubleshooting[/color:rxj8l0cs]
[color=cyan:rxj8l0cs] lblTitleName.Text = Marshal.PtrToStringAnsi(tag.data);
}
if (Convert.ToString(result=sound.getTag("ARTIST", 0, ref tag)) == "OK")
{
listBox1.Items.Add(result = sound.getTag("ARTIST", 0, ref tag));[/color:rxj8l0cs][color=violet:rxj8l0cs])// This line is not needed just for troubleshooting[/color:rxj8l0cs]
[color=cyan:rxj8l0cs] lblArtistInfo.Text = Marshal.PtrToStringAnsi(tag.data);
}[/color:rxj8l0cs]
}
else
{

         }

To retrieve the metadata from the mp3 tagging more need to be done

  • You must to post comments
0
0

The error of "too many channels" is probably due to a header / dll mixup (clean your project / reinstall FMOD to fix), if you look at the errors available right next to "too many channels" is "tag not found" a more reasonable error for what you are doing. "Tag not found" is a normal error and can be ignored until that tag comes into the netstream.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.