Music Players?


Optimus

Member
Joined
May 8, 2005
Messages
339
Age
44
Location
Greece
Website
optimus.untergrund.net
Which music player libs are availiable for GP2X? I'd need something to play MODs for the moment. On the developers downloads I didn't seem to find something. Or maybe does SDL or any other lib has an integrated mod player? Does FMOD exist for GP2X?
 
Hello folks,

Well I am currently working on a demo as we speak now (my friend is working on some other routine beside me) and I am in charge of taking care of the audio part. And to your information SDL_Mixer doesnt seems to work with MOD or XM or IT. I just tried 3 differents formats and they all return me with the following errors: Mix_LoadWAV: Unrecognized sound file type

I am using the function Mix_LoadWAV functions (yah I know the name is misleading but in reading the SDL docs they really mention that LoadWAV support WAV, OGG, MP3, MOD, S3M, XM, IT and MIDI. So maybe it is the version included in the official GP2X SDK that isnt complete or something.

Anybody know how to use it properly to play some kind of tracker format?

Any help will be greatly appreciated.

Thanks.
 
Ok just got it working now ;-)

It seems again the docs and the header file are VERY MISLEADING, they were mentionning that LoadWAV load any kind of data. But I have to use LoadMUS and now I have DOPE.MOD working flawlessly (well it seems it have some timing issue, but then I am filling the screen with fillrect to infinity so it maybe the source of the problem ;-) or it is the player that doesnt support well this specific tune which was the main tune from the demo Dope from Komplex!).

Ok so if you want to load WAV, OGG, MP3 the LoadWAV, but for tracker format use LoadMUS.

Now back to coding!!!
 
LoadWAV should be used for sound effects, LoadMUS is for music as it is streamed AFAIK.
 
Great! (I had a similar situation with Fmod (on PC) a long time ago btw,. there was a diferrent functions for WAV/MP3/OGG and diferrent for Modules, and iirc same situation with a misleading doc back then :p)

Actually, I get some stupid linking errors no matter if I link the libs needed (mikmod and SDL_mixer but the linker asks me for more libs ;P), maybe I should need to install another SDL lib package as I read in forums. I'll download these libs (oddbot something) and ask again if there is still problem..
 
After installing the oddbot libs I still got the same linker errors. I kept eliminating them by adding -lvorbisidec -lsmpeg and of course -lmikmod and more -l's I found in various makefiles (loL). But still I get some of them (like " [Linker error] undefined reference to `operator new(unsigned int)' "). Wtf? And why do I need to link so many libs when I only need to play a MOD file and not OGG or MP3 yet? I am just afraid of the file size now :p.. but first I want to be able to compile this. HELP!
 
Hello folks,

Well I just find out something really bad about the official SDK. It seems what is included in Windows VS GP2X is different. I mean it is not really a WYSIWYG, like I have implemented the LoadMUS from the SDL_Mixer and was able to swithc between, MOD, XM, IT and OGG without problem under Windows. Then decide to try the thing on the real thing and that where it turn out bad 8-(. My application was just crashing, so after further debugging we find out that the LoadMUS failed with the error that says : unrecognized format (and that with almost everything except my OGG file). So that mean the SDL include in the official SDK have more feature enable than the actual GP2X version 8-(.

So if I want to play any kind of tracker music I need to switch libs? But I still ike to be able to do see my thing under windows then do just one click to recomile for the GP2X.

What should I do now?

Thanks for your collaboration in advance.

Sincerly
Fred
 
Hello yaustar,

Sorry if my message wasnt clear, no under Windows on the PC I can play MOD, XM, IT very well. We are currently using the official SDK (we didnt want to start link against the unofficial package) and all the code was working well in that environment. I made some sample code to test some of our ideas and also see what is possible to do with SDL on the GP2X and at what speed it runs. In that that test it displayed a logo that was moving around, changing the background color, display the FPS and then play some music. The first music to load is in XM format, then by using the UP keys on the PC (it use SELECT on the GP2X) I am flipping between the other module which are in MOD, IT and OGG. That work very well and I was quite happy about it, then I compile this code to generate the GP2X executable that we transfer on the real thing. Then my friend told me my code wasnt working at all and it simply crash, so I decide to add a log file to see where exactly it was crashing. And when we check the log file we saw it said unrecognized format, my friend even recompile my code by changing the music to load a MOD, IT and they all failed, except the OGG. So from my understanding is that in the official SDK the SDL compile under Windows have more feature enable then the GP2X version which is rather annoying, I would have prefer that the Windows version also have all those code disable so atleast I would have known that I need to get another libraries.

Thanks.

Sincerly
Fred
 
The sound libraries that come with DevKitGP2X on the archives work fine with mods. You shuould be able to grab the library from there and replace your current one.
 
Hello yaustar.

This is what I though, but like I mentionned we were trying to stay with the official SDK, so we dont have to link statically against unofficial SDL libraries. Since this will add space to the final binary 8-( (we are working on a demo for the competition and it has a size restriction). But it seems we will have no choice to use other libraries which I dont like too much, I would have prefered to stay with the official releases. We cant link dynamically since we cant relied that people will have updated their SDL libraries on their GP2X. Maybe GPH will fix those thing in a newer firmware release?

Thanks.
Fred
 
Hello folks,

Here is my other finding.... MP3 doesnt work either!!!

Yup I am using the funciton LoadMUS under Windows (PC) and it work well, then send my file to my friend to test it out and guess what? Unrecognized format crap again in my log file! So the only format that seem to work under the GP2X is OGG and that it, well with the official SDK.

Now I think we should all pester GPH so they put a more complete working SDL librairies in the next firmware releases.

Fred
 
Intruder posted on Jul 9 2006 at 04:56 AM said:
This is what I though, but like I mentionned we were trying to stay with the official SDK, so we dont have to link statically against unofficial SDL libraries.
Erm, you don't have to. Just dynamically link it.
 
Last edited by a moderator:
Hello yaustar

But we will have no choice to link statically since the libraries installed by GPH in the firmware by default doesnt support the thing we need. And I dont want to force people to install additional libraries to run our demos, so we will simply add mikmod library in our build (Optimus told me that he use that to solve his music problem).

Thanks.
Fred
 
Back
Top