Welcome! Log In Create A New Profile

Advanced

Sound? Howto?

Posted by RatherBeerBrew 
Re: Sound? Howto?
August 04, 2008 10:42PM
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.
Re: Sound? Howto?
August 04, 2008 10:44PM
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't an error msg...
Re: Sound? Howto?
August 04, 2008 10:46PM
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 be: bg sound and sfx. If it's working with sndlib I'l open another threat (maybe) ;)...
But now I'll try mp3 bg sound...
Re: Sound? Howto?
August 04, 2008 10:53PM
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 one I didn't understand: SNIPPED "Or if you don't have the source, copy the contents of "libogc_patch" to the directory "libogc" and compile and patch libogc.a." SNIPPED

Hum, what does that mean? Are you using this lib? How did you make this one running?
Re: Sound? Howto?
August 04, 2008 11:32PM
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 preposted code.

If everyone else agrees that it hinders instead of helping, I'll kick it from that pre-posted code file.



Edited 1 time(s). Last edit at 08/04/2008 11:37PM by Arikado.
Re: Sound? Howto?
August 05, 2008 12:11AM
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 preposted
> code.
>
> If everyone else agrees that it hinders instead of
> helping, I'll kick it from that pre-posted code
> file.

Ok guy. Tell me your experience. My mp3 is stuttering... Not working fine... It's about 500kb... Not working 100%....
Re: Sound? Howto?
August 05, 2008 01:46AM
My experience is from studying source code. If you have an .mp3 file actually playing thats great! I'll tell you my expierience once the get the darn PlayFile function working properly. I'm sorry but I've had to devote a lot of time to something else right now (see my topic in coding). I'm looking through the source vader reccomended a while back right now.
Re: Sound? Howto?
August 05, 2008 09:50AM
Yeah I also had problem running it, but finally I did it.
Once compiled/installed it works great, my game has mod or ogg as background sound plus sound effects.
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 ;)

Cheers,
Scognito.
Re: Sound? Howto?
August 06, 2008 09:13AM
I'd agree with Scognito - sndlib is the way to go for both music and sound effects.

I had lots of problems when using the mp3player and once I moved to sndlib it was plain sailing.

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.
Re: Sound? Howto?
August 10, 2008 10:55PM
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?
Re: Sound? Howto?
August 11, 2008 08:55AM
Raw2c?
Re: Sound? Howto?
August 11, 2008 09:20AM
Quote
RatherBeerBrew
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?

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 _ogg and the size as _ogg_size

You will also need to add an include like #include "_ogg.h" as well



Edited 2 time(s). Last edit at 08/11/2008 09:22AM by JustWoody.
Sorry, only registered users may post in this forum.

Click here to login