Well.. and what about SDL_mixer?? does it play anything? I've tried with a wav file but doesn't seems to work...
Edit: Debugging a bit I found that it freezes when calling SDL_BuildAudioCVT from Mix_LoadWAV_RW
Printable View
Well.. and what about SDL_mixer?? does it play anything? I've tried with a wav file but doesn't seems to work...
Edit: Debugging a bit I found that it freezes when calling SDL_BuildAudioCVT from Mix_LoadWAV_RW
did you build your project with the template? http://gpf.dcemu.co.uk/files/nds/SDL...S061507src.rar
ds SDL requires a custom arm7 core to have sound enabled.
Troy(GPF)
also the latest ds SDL version is part of libsdl.org for the last couple releases, I need to update my site about that.
Yes, I'm using the template.
The makefile.ds isn't included on the official SDL sources, but I've compiled it and it seems that sound is working (I need to test it on the real hardware, because it sounds weird on the emus).
Thanks for your replies!
I just get weird sounds, using wavs or mod files... I have to initialize the librarie in some particular way?
I'm using with sound_freq=22050, or 11025 but got the same bad results...
Mix_OpenAudio (SOUND_FREQ,MIX_DEFAULT_FORMAT, 2,1024*SOUND_FREQ/22050)
EDIT:
Got it working with Mix_OpenAudio (11025, AUDIO_S8, 1,4096);
This means that no stereo panning can be used?
REEDIT:
I still got some "clicks" both on music and fx :(
It seems that if you play a sound, when it finishes playing, randomly keeps repeating noise or clicks for an undefined time. If you play a music on the background it does not happen.
It's annoying if you don't need a music to be played...