<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Sound? Howto?</title>
<description>Hello folks,

nice to be in this forum :)-D

I got a realy big problem: enabling sound in my programs. I did a very simple game. GFX is not that problem.

But how can I add some sound to my game? I exported a .ogg file with Audacity. How can I put it in? I read the &quot;soundlib&quot; tutorial from &quot;Hermes&quot;. But I understand nothing.

Can some one realy help me (us)? Howto put a song and sfx in homebrewed games (demos etc.)?

Thank you guys!!!</description><link>http://forum.wiibrew.org/read.php?11,107,107#msg-107</link><lastBuildDate>Tue, 16 Jun 2026 02:28:56 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,490#msg-490</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,490#msg-490</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>RatherBeerBrew</strong><br />Ooooookay all, seems to work now (the demos of the lib). But howto convert a .ogg file in a hex file to make my own sound run?</div></blockquote><br />Put it in your data directory and add an entry in your makefile to convert ogg (just look at someone elses to see the syntax of this) then you can refer to the buffer as <youroggfilename>_ogg and the size as <youroggfilename>_ogg_size<br /><br />You will also need to add an include like #include "<youroggfilename>_ogg.h" as well]]></description>
<dc:creator>JustWoody</dc:creator>
<category>Coding</category><pubDate>Mon, 11 Aug 2008 09:20:31 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,487#msg-487</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,487#msg-487</link><description><![CDATA[ Raw2c?]]></description>
<dc:creator>Dykam</dc:creator>
<category>Coding</category><pubDate>Mon, 11 Aug 2008 08:55:56 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,459#msg-459</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,459#msg-459</link><description><![CDATA[ Ooooookay all, seems to work now (the demos of the lib). But howto convert a .ogg file in a hex file to make my own sound run?]]></description>
<dc:creator>RatherBeerBrew</dc:creator>
<category>Coding</category><pubDate>Sun, 10 Aug 2008 22:55:24 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,259#msg-259</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,259#msg-259</link><description><![CDATA[ I&#039;d agree with Scognito - sndlib is the way to go for both music and sound effects.<br /><br />I had lots of problems when using the mp3player and once I moved to sndlib it was plain sailing.<br /><br />I would look at the examples that come with sndlib as these show you the code that you need to add for ogg support + sound effects.]]></description>
<dc:creator>JustWoody</dc:creator>
<category>Coding</category><pubDate>Wed, 06 Aug 2008 09:13:44 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,233#msg-233</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,233#msg-233</link><description><![CDATA[ Yeah I also had problem running it, but finally I did it.<br />Once compiled/installed it works great, my game has mod or ogg as background sound plus sound effects.<br />Try if you can install it, otherwise i can provide a package containing latest stable libogc patched (source or binary) but I assume no responsability ;)<br /><br />Cheers,<br />Scognito.]]></description>
<dc:creator>scognito</dc:creator>
<category>Coding</category><pubDate>Tue, 05 Aug 2008 09:50:51 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,210#msg-210</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,210#msg-210</link><description><![CDATA[ My experience is from studying source code. If you have an .mp3 file actually playing thats great! I&#039;ll tell you my expierience once the get the darn PlayFile function working properly. I&#039;m sorry but I&#039;ve had to devote a lot of time to something else right now (see my topic in coding). I&#039;m looking through the source vader reccomended a while back right now.]]></description>
<dc:creator>Arikado</dc:creator>
<category>Coding</category><pubDate>Tue, 05 Aug 2008 01:46:23 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,206#msg-206</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,206#msg-206</link><description><![CDATA[ Arikado Wrote:<br />-------------------------------------------------------<br />&gt; Oh. Mine kept telling me something like it<br />&gt; couldn&#039;t find the function so I added -lmp3player.<br />&gt; I saw it reccomended somewhere. Strangely enough<br />&gt; its worked fine since then. Now I just need to put<br />&gt; in some time to get that function working<br />&gt; properly. When it does, I&#039;ll edit my preposted<br />&gt; code.<br />&gt;<br />&gt; If everyone else agrees that it hinders instead of<br />&gt; helping, I&#039;ll kick it from that pre-posted code<br />&gt; file.<br /><br />Ok guy. Tell me your experience. My mp3 is stuttering... Not working fine... It&#039;s about 500kb... Not working 100%....]]></description>
<dc:creator>RatherBeerBrew</dc:creator>
<category>Coding</category><pubDate>Tue, 05 Aug 2008 00:11:22 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,203#msg-203</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,203#msg-203</link><description><![CDATA[ Oh. Mine kept telling me something like it couldn&#039;t find the function so I added -lmp3player. I saw it reccomended somewhere. Strangely enough its worked fine since then. Now I just need to put in some time to get that function working properly. When it does, I&#039;ll edit my preposted code.<br /><br />If everyone else agrees that it hinders instead of helping, I&#039;ll kick it from that pre-posted code file.]]></description>
<dc:creator>Arikado</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 23:32:45 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,201#msg-201</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,201#msg-201</link><description><![CDATA[ scognito Wrote:<br />-------------------------------------------------------<br />&gt; Mp3 + IR make the sound not playing because mp3<br />&gt; decoder doesn&#039;t have enough CPU cycles.<br />&gt; I suggest to use sndlib beta<br />&gt; (http://wiibrew.org/wiki/Sndlib) that works for<br />&gt; sure for ogg and has multiple sound support.<br />&gt;<br />&gt; Cheers,<br />&gt; Scognito.<br /><br />Oh, now I know which lib you mean: the one I didn&#039;t understand: SNIPPED "Or if you don&#039;t have the source, copy the contents of "libogc_patch" to the directory "libogc" and compile and patch libogc.a." SNIPPED<br /><br />Hum, what does that mean? Are you using this lib? How did you make this one running?]]></description>
<dc:creator>RatherBeerBrew</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 22:53:30 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,200#msg-200</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,200#msg-200</link><description><![CDATA[ scognito Wrote:<br />-------------------------------------------------------<br />&gt; Mp3 + IR make the sound not playing because mp3<br />&gt; decoder doesn&#039;t have enough CPU cycles.<br />&gt; I suggest to use sndlib beta<br />&gt; (http://wiibrew.org/wiki/Sndlib) that works for<br />&gt; sure for ogg and has multiple sound support.<br />&gt;<br />&gt; Cheers,<br />&gt; Scognito.<br /><br />Vader347 mentioned it. The goal should be: bg sound and sfx. If it&#039;s working with sndlib I&#039;l open another threat (maybe) ;)...<br />But now I&#039;ll try mp3 bg sound...]]></description>
<dc:creator>RatherBeerBrew</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 22:46:39 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,199#msg-199</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,199#msg-199</link><description><![CDATA[ vader347 Wrote:<br />-------------------------------------------------------<br />&gt; I have -lmp3player -lwiiuse -lbte -lfat -logc -lm<br />&gt; Unfortunately, I still haven&#039;t fixed the<br />&gt; Mp3Player_Playfile() so it doesn&#039;t work yet.<br />&gt; RatherBeerBrew and I don&#039;t have libmp3player.<br />&gt; Unless it is somewhere weird.<br /><br /><br />That&#039;s right. I kicked -lmp3player and now I haven&#039;t an error msg...]]></description>
<dc:creator>RatherBeerBrew</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 22:44:15 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,198#msg-198</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,198#msg-198</link><description><![CDATA[ Mp3 + IR make the sound not playing because mp3 decoder doesn&#039;t have enough CPU cycles.<br />I suggest to use sndlib beta (http://wiibrew.org/wiki/Sndlib) that works for sure for ogg and has multiple sound support.<br /><br />Cheers,<br />Scognito.]]></description>
<dc:creator>scognito</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 22:42:48 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,197#msg-197</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,197#msg-197</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />I have -lmp3player -lwiiuse -lbte -lfat -logc -lm Unfortunately, I still haven&#039;t fixed the Mp3Player_Playfile() so it doesn&#039;t work yet.</div></blockquote>
RatherBeerBrew and I don&#039;t have libmp3player. Unless it is somewhere weird.]]></description>
<dc:creator>vader347</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 22:33:47 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,196#msg-196</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,196#msg-196</link><description><![CDATA[ I have -lmp3player -lwiiuse -lbte -lfat -logc -lm Unfortunately, I still haven&#039;t fixed the Mp3Player_Playfile() so it doesn&#039;t work yet.]]></description>
<dc:creator>Arikado</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 22:27:13 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,194#msg-194</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,194#msg-194</link><description><![CDATA[ Sorry this time it should work<br />-lpng -lz -lwiiuse -lmad -lbte -lfat -logc -lm]]></description>
<dc:creator>vader347</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 22:15:09 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,193#msg-193</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,193#msg-193</link><description><![CDATA[ vader347 Wrote:<br />-------------------------------------------------------<br />&gt; remove -lmp3player<br /><br />Then<br /><br />--------------snipped----------------<br />c:/devkitPro/libogc/lib/wii\libmad.a(mp3player.o): In function `MP3Player_Init&#039;:<br />mp3player.c:(.text.MP3Player_Init+0x28): undefined reference to `AUDIO_Init&#039;<br />mp3player.c:(.text.MP3Player_Init+0x30): undefined reference to `AUDIO_SetDSPSampleRate&#039;<br />collect2: ld returned 1 exit status<br />make[1]: *** [/c/projects/wii/dke/dke.elf] Error 1<br />"make": *** [build] Error 2<br /><br />&gt; Process Exit Code: 2<br />--------------snipped----------------<br /><br />appears again...]]></description>
<dc:creator>RatherBeerBrew</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 21:50:01 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,192#msg-192</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,192#msg-192</link><description><![CDATA[ remove -lmp3player]]></description>
<dc:creator>vader347</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 21:32:08 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,191#msg-191</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,191#msg-191</link><description><![CDATA[ vader347 Wrote:<br />-------------------------------------------------------<br />&gt; That:-lpng -lz -lfat -lwiiuse -lbte -logc -lm<br />&gt; -lmad<br />&gt; Try changing that to<br />&gt;<br />&gt; -lpng -lz -lfat -lwiiuse -lbte -lmp3player -lmad<br />&gt; -logc -lm<br /><br />Damned. So close:<br /><br />&gt; "make"<br />linking ... dke.elf<br />c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.3/../../../../powerpc-gekko/bin/ld.exe: cannot find -lmp3player<br />collect2: ld returned 1 exit status<br />make[1]: *** [/c/projects/wii/dke/dke.elf] Error 1<br />"make": *** [build] Error 2<br /><br />&gt; Process Exit Code: 2<br />&gt; Time Taken: 00:00<br /><br />What&#039;s missing? mp3player.h is in directory C:\devkitPro\libogc\include....]]></description>
<dc:creator>RatherBeerBrew</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 21:30:06 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,182#msg-182</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,182#msg-182</link><description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />That:-lpng -lz -lfat -lwiiuse -lbte -logc -lm -lmad</div></blockquote>
Try changing that to<br /><br />-lpng -lz -lfat -lwiiuse -lbte -lmp3player -lmad -logc -lm]]></description>
<dc:creator>vader347</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 18:58:13 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,181#msg-181</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,181#msg-181</link><description><![CDATA[ vader347 Wrote:<br />-------------------------------------------------------<br />&gt; What does the<br />&gt; LIBS:<br />&gt;<br />&gt; line of your Makefile have?<br /><br /><br /><br />That:<br /><br />-lpng -lz -lfat -lwiiuse -lbte -logc -lm -lmad]]></description>
<dc:creator>RatherBeerBrew</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 18:26:33 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,180#msg-180</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,180#msg-180</link><description><![CDATA[ What does the<br />LIBS:<br /><br />line of your Makefile have?]]></description>
<dc:creator>vader347</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 18:04:51 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,171#msg-171</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,171#msg-171</link><description><![CDATA[ Sorry guys,<br /><br />everything I tried (what&#039;s written above) didn&#039;t work. Even if I include the "mp3player.h" lib the compiler is showing an error:<br /><br />--------------snipped----------------<br />c:/devkitPro/libogc/lib/wii\libmad.a(mp3player.o): In function `MP3Player_Init&#039;:<br />mp3player.c:(.text.MP3Player_Init+0x28): undefined reference to `AUDIO_Init&#039;<br />mp3player.c:(.text.MP3Player_Init+0x30): undefined reference to `AUDIO_SetDSPSampleRate&#039;<br />collect2: ld returned 1 exit status<br />make[1]: *** [/c/projects/wii/dke/dke.elf] Error 1<br />"make": *** [build] Error 2<br /><br />&gt; Process Exit Code: 2<br />--------------snipped----------------<br /><br />What&#039;s wrong?]]></description>
<dc:creator>RatherBeerBrew</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 15:39:04 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,157#msg-157</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,157#msg-157</link><description><![CDATA[ I know... Shameful!]]></description>
<dc:creator>Arikado</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 05:35:25 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,152#msg-152</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,152#msg-152</link><description><![CDATA[ Does no one write the code for this stuff themselves these days...]]></description>
<dc:creator>WiiPhlex</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 04:12:43 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,145#msg-145</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,145#msg-145</link><description><![CDATA[ This is how to play mp3s and it uses libwiisprite <a href="http://wiibrew.org/wiki/User:Navarr/PoK%C3%A9QuesT/src/main.c" rel="nofollow">[http://wiibrew.org/]</a>]]></description>
<dc:creator>vader347</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 02:52:44 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,141#msg-141</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,141#msg-141</link><description><![CDATA[ Actually, I did. I looked at DragonMedia Player, MiniMp3 Player, and MPlayerWii. MiniMp3 Player used GRRLIB, which I know nothing about. DragonMedia Player used libwiisprite, which I know quite a bit about. Unfortunately I didn&#039;t understand its loading technique. I sort of just quickly skimmed MPlayerWii.<br /><br />I&#039;ve been able to figure out that the function needs 3 parameters to pass. The first is an s32 which I know nearly nothing about. Ditto the second parameter. It is also an s32 but holds the length of the file. The last parameter passes either NULL or TRUE and determines whether or not the .mp3 will keep playing after it ends.]]></description>
<dc:creator>Arikado</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 01:49:46 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,137#msg-137</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,137#msg-137</link><description><![CDATA[ Look at the source code of an existing homebrew app.]]></description>
<dc:creator>vader347</dc:creator>
<category>Coding</category><pubDate>Mon, 04 Aug 2008 00:12:59 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,136#msg-136</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,136#msg-136</link><description><![CDATA[ <a href="http://www.koyotesoft.com/indexEn.html" rel="nofollow">Mp3 converter tool</a> I haven&#039;t tried it myself but I&#039;ve heard good things about it. Plus its free. Check out the page first however. No guarantee, but I&#039;m 99.9% sure it will work perfectly.<br /><br />You&#039;ll need devkitPPC properly installed to do the following:<br /><br />Add -lfat -lwiiuse -logc to the LIBS directory in your makefile.<br /><br />Add a folder called data to your .pnproj file. Put your .mp3 files in this folder.<br /><br />When you compile your program and get your files, make a new folder in your apps folder on your SanDisk. Make sure to put boot.elf and the data folder within that folder.<br /><br />Heres a simple example for making sounds play when you press buttons:<br /><pre class="bbcode">
#include <wiiuse/wpad.h> //Wii Remote
#include <fat.h> //Load .mp3 files from Sandisk
#include <mp3player.h>//To play .mp3

//Set up video

 int main(){

   VIDEO_Init();//Initialise Video (Note: I&#039;m not doing anything with the screen this program)

   fatInitDefault();//Initialise the front SanDisk for loading .mp3s

   MP3Player_Init();//Initialise the MP3 player

   WPAD_Init();//Initialise the Wii Remote

   while(true){

   WPAD_ScanPads();//Checks the current state of the wii remote

   if(WPAD_ButtonsDown(WPAD_CHAN_0)&WPAD_BUTTON_A){
     if(MP3Player_IsPlaying())
      MP3Player_Stop();

      MP3Player_PlayFile("data/soundeffect1.mp3", lengthofsoundeffect1, NULL);/*This line will not compile because I do not have the correct paremeters*/

      }

   if(WPAD_ButtonsDown(WPAD_CHAN_0)&WPAD_BUTTON_B){
     if(MP3Player_IsPlaying())
      MP3Player_Stop();

     MP3Player_PlayFile("data/soundeffect2.mp3", lengthofsoundeffect2, NULL);/*This line will not compile because I do not have the correct    paremeter*/

      }


   if(WPAD_ButtonsDown(WPAD_CHAN_0)&WPAD_BUTTON_HOME){
     if(MP3Player_IsPlaying())
      MP3Player_Stop();
     break;
    }
   }
     return 0;
 }</pre><br />Heres another simple example for continuous intro music. Stop and start the music with 2:<br /><br /><pre class="bbcode">
#include <wiiuse/wpad.h> //Wii Remote
#include <fat.h> //Load .mp3 files from Sandisk
#include <mp3player.h>//To play .mp3

//Set up video

 int main(){

   VIDEO_Init();//Initialise Video (Note: I&#039;m not doing anything with the screen this program)

   fatInitDefault();//Initialise the front SanDisk for loading .mp3s

   MP3Player_Init();//Initialise the MP3 player

   WPAD_Init();//Initialise the Wii Remote

   while(true){

   WPAD_ScanPads();//Checks the current state of the wii remote

   if(WPAD_ButtonsDown(WPAD_CHAN_0)&WPAD_BUTTON_2){
     if(MP3Player_IsPlaying()){
      MP3Player_Stop();
      continue;
        }

     if(!MP3Player_IsPlaying())
      MP3Player_PlayFile("data/intro.mp3", introlength, NULL);//This line will not compile because I do not have the correct paremeters

      }

   
    if(WPAD_ButtonsDown(WPAD_CHAN_0)&WPAD_BUTTON_HOME){
     if(MP3Player_IsPlaying())
      MP3Player_Stop();
     break;
    }
   }
     return 0;
 }</pre><br />Based on what is in mp3player.h, those lines that aren&#039;t compiling, i think should be compiling (however I replaced the second parameter with a number when I attempted to compile). Other than that those two lines, the programs would actually work perfectly if only the lines would compile. I&#039;ll edit this post if I get it working.<br /><br />Sorry about not being able to get the MP3_PlayFile() working. Heres the prototype for it:<br /><br /><pre class="bbcode">
 s32 MP3Player_PlayFile(void *cb_data,s32 (*reader)(void *,void *,s32),void (*filterfunc)(struct mad_stream *,struct mad_frame *));</pre><br />Hope that all helps.]]></description>
<dc:creator>Arikado</dc:creator>
<category>Coding</category><pubDate>Sun, 03 Aug 2008 23:48:06 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,118#msg-118</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,118#msg-118</link><description><![CDATA[ Arikado Wrote:<br />-------------------------------------------------------<br />&gt; I believe if you want to play the .ogg file, you<br />&gt; must write the function to do so yourself. An<br />&gt; easier method may be to convert it to an .mp3 file<br />&gt; and use libogc to play it.<br /><br />The goal should be:<br /><br />1. Play a intro song.<br />2. Stop this intro song and start playing ingamesong (if startet).<br />3. Play some sfx if triggers (A button, B button etc.) are pressed.<br /><br />How can I do this with .mp3? Is there any tutorial how to play .mp3 files? Uhm, the idea of WiiPhlex should be ok (put the .mp3 hardcoded in the game...). I can convert the .mp3 with which tool?<br /><br />I thank you very much for help...]]></description>
<dc:creator>RatherBeerBrew</dc:creator>
<category>Coding</category><pubDate>Sun, 03 Aug 2008 20:30:23 +0200</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,107,112#msg-112</guid>
<title>Re: Sound? Howto?</title><link>http://forum.wiibrew.org/read.php?11,107,112#msg-112</link><description><![CDATA[ I believe if you want to play the .ogg file, you must write the function to do so yourself. An easier method may be to convert it to an .mp3 file and use libogc to play it.]]></description>
<dc:creator>Arikado</dc:creator>
<category>Coding</category><pubDate>Sun, 03 Aug 2008 15:56:03 +0200</pubDate></item>
</channel>
</rss>