<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>MP3 player callback</title>
<description> I&amp;#039;m trying to code an MP3/OGG player wich will support tracklists.

The problem, is that the MP3Player in the libogc doesn&amp;#039;t have a callback called when the song is ended (use to play the next song). I still haven&amp;#039;t read the OGG code.

Do you know if someone has already coded something like that?</description><link>http://forum.wiibrew.org/read.php?11,62661,62661#msg-62661</link><lastBuildDate>Mon, 07 Sep 2026 20:57:17 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,62661,62667#msg-62667</guid>
<title>Re: MP3 player callback</title><link>http://forum.wiibrew.org/read.php?11,62661,62667#msg-62667</link><description><![CDATA[ Because i wan&#039;t to create a audio player that support tracklists. I know that i can pull the player to in order to know if the song has terminated, but this is an horrible way to do ( because this means that i need to create another thread than the one the player use)....<br /><br />The better solution is that the player throw an event or call a callback when the song is terminated. That way, i just need to put the next song in the callback (and i need to put some thread safe stuff)<br /><br />Generally players work like this... Real time coding is not the better option (it&#039;s just my opinion).]]></description>
<dc:creator>arasium</dc:creator>
<category>Coding</category><pubDate>Mon, 29 Nov 2010 18:56:26 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,62661,62664#msg-62664</guid>
<title>Re: MP3 player callback</title><link>http://forum.wiibrew.org/read.php?11,62661,62664#msg-62664</link><description><![CDATA[ Why do you need a callback?<br /><br /><pre class="bbcode">
if(!MP3Player_IsPlaying())
{
  printf("MP3 has stopped!\n");
}
</pre>]]></description>
<dc:creator>scanff</dc:creator>
<category>Coding</category><pubDate>Mon, 29 Nov 2010 18:32:54 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,62661,62661#msg-62661</guid>
<title>MP3 player callback</title><link>http://forum.wiibrew.org/read.php?11,62661,62661#msg-62661</link><description><![CDATA[ I&#039;m trying to code an MP3/OGG player wich will support tracklists.<br /><br />The problem, is that the MP3Player in the libogc doesn&#039;t have a callback called when the song is ended (use to play the next song). I still haven&#039;t read the OGG code.<br /><br />Do you know if someone has already coded something like that?]]></description>
<dc:creator>arasium</dc:creator>
<category>Coding</category><pubDate>Mon, 29 Nov 2010 17:22:01 +0100</pubDate></item>
</channel>
</rss>