Welcome! Log In Create A New Profile

Advanced

MP3Player broken in devkitPROr17?

Posted by Arikado 
MP3Player broken in devkitPROr17?
September 09, 2009 09:18PM
This seems really easy to fix to me. But I can't figure it out (because I'm overlooking something obvious?).

Any time I try to compile anything that uses mp3player.h I get the following errors:
c:/devkitPRO/libogc/lib/wii\libmad.a(mp3player.o): In function `StreamPlay':
mp3player.c:(.text.StreamPlay+0x44c): undefined reference to `ASND_StopVoice'
mp3player.c:(.text.StreamPlay+0x554): undefined reference to `ASND_SetVoice'
c:/devkitPRO/libogc/lib/wii\libmad.a(mp3player.o): In function `MP3Player_Init':
mp3player.c:(.text.MP3Player_Init+0x28): undefined reference to `ASND_Pause'
mp3player.c:(.text.MP3Player_Init+0x30): undefined reference to `ASND_StopVoice'
c:/devkitPRO/libogc/lib/wii\libmad.a(mp3player.o): In function `DataTransferCallback':
mp3player.c:(.text.DataTransferCallback+0x19c): undefined reference to `ASND_TestPointer'
mp3player.c:(.text.DataTransferCallback+0x2c8): undefined reference to `ASND_StatusVoice'
mp3player.c:(.text.DataTransferCallback+0x320): undefined reference to `ASND_AddVoice'
collect2: ld returned 1 exit status

The obvious solution, is to link in ASND.

So I've added #include(asndlib.h) where appropriate and linked in -lasnd but the errors don't go away.

Ideas?

Edit: I'm simply trying to recompile my CalculateMii1.1 (Source DL link here: [www.wiibrew.org])



Edited 1 time(s). Last edit at 09/09/2009 10:13PM by Arikado.
Re: MP3Player broken in devkitPROr17?
September 09, 2009 09:48PM
You've included asndlib.h before mp3player.h right? :)
Re: MP3Player broken in devkitPROr17?
September 09, 2009 10:07PM
Re: MP3Player broken in devkitPROr17?
September 09, 2009 11:23PM
Check the order of -lasnd in the Makefile. Try reversing it.
Re: MP3Player broken in devkitPROr17?
September 09, 2009 11:39PM
Thanks, that worked.

Unfortunately though, calling MP3Player_PlayBuffer() freezes the program for awhile and then no sound comes. Calling MP3Player_Stop() freezes the program indefinitely.
Re: MP3Player broken in devkitPROr17?
September 10, 2009 04:39AM
I had that exact same problem on an early build of one of my projects... turns out it was such a simple fix i can't remember what i did. If you post your code, i might recognize what the issue was...
Re: MP3Player broken in devkitPROr17?
September 11, 2009 01:22AM
Fixed.

Simple solution (as suggested by mdbrim):

ASND_Init();
MP3Player_Init();
Re: MP3Player broken in devkitPROr17?
September 11, 2009 06:23AM
lol yep!!!

that was it!

Awesome, glad you figured out... took me TWO days to fix such a simple thing.
Sorry, only registered users may post in this forum.

Click here to login