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?by RatherBeerBrew - Coding
Arikado Wrote: ------------------------------------------------------- > Oh. Mine kept telling me something like it > couldn'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'll edit my preposteby RatherBeerBrew - Coding
scognito Wrote: ------------------------------------------------------- > Mp3 + IR make the sound not playing because mp3 > decoder doesn't have enough CPU cycles. > I suggest to use sndlib beta > (http://wiibrew.org/wiki/Sndlib) that works for > sure for ogg and has multiple sound support. > > Cheers, > Scognito. Oh, now I know which lib you mean: the oby RatherBeerBrew - Coding
scognito Wrote: ------------------------------------------------------- > Mp3 + IR make the sound not playing because mp3 > decoder doesn't have enough CPU cycles. > I suggest to use sndlib beta > (http://wiibrew.org/wiki/Sndlib) that works for > sure for ogg and has multiple sound support. > > Cheers, > Scognito. Vader347 mentioned it. The goal should bby RatherBeerBrew - Coding
vader347 Wrote: ------------------------------------------------------- > I have -lmp3player -lwiiuse -lbte -lfat -logc -lm > Unfortunately, I still haven't fixed the > Mp3Player_Playfile() so it doesn't work yet. > RatherBeerBrew and I don't have libmp3player. > Unless it is somewhere weird. That's right. I kicked -lmp3player and now I haven'tby RatherBeerBrew - Coding
vader347 Wrote: ------------------------------------------------------- > remove -lmp3player Then --------------snipped---------------- c:/devkitPro/libogc/lib/wii\libmad.a(mp3player.o): In function `MP3Player_Init': mp3player.c:(.text.MP3Player_Init+0x28): undefined reference to `AUDIO_Init' mp3player.c:(.text.MP3Player_Init+0x30): undefined reference to `AUDIO_SetDSPSamby RatherBeerBrew - Coding
vader347 Wrote: ------------------------------------------------------- > That:-lpng -lz -lfat -lwiiuse -lbte -logc -lm > -lmad > Try changing that to > > -lpng -lz -lfat -lwiiuse -lbte -lmp3player -lmad > -logc -lm Damned. So close: > "make" linking ... dke.elf c:/devkitpro/devkitppc/bin/../lib/gcc/powerpc-gekko/4.2.3/../../../../powerpc-gekko/bin/ld.exe: caby RatherBeerBrew - Coding
vader347 Wrote: ------------------------------------------------------- > What does the > LIBS: > > line of your Makefile have? That: -lpng -lz -lfat -lwiiuse -lbte -logc -lm -lmadby RatherBeerBrew - Coding
Sorry guys, everything I tried (what's written above) didn't work. Even if I include the "mp3player.h" lib the compiler is showing an error: --------------snipped---------------- c:/devkitPro/libogc/lib/wii\libmad.a(mp3player.o): In function `MP3Player_Init': mp3player.c:(.text.MP3Player_Init+0x28): undefined reference to `AUDIO_Init' mp3player.c:(.text.MP3Player_Initby RatherBeerBrew - Coding
Arikado Wrote: ------------------------------------------------------- > 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. The goal should be: 1. Play a intro song. 2. Stop this intro song and start playing ingamesong (if startet). 3. Play somby RatherBeerBrew - Coding
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 "soundlib" tutorial from "Hermes". But I understand nothing. Can some one realy help me (us)? Howto put a song and sfx in hoby RatherBeerBrew - Coding