[SDL] ARM SDL ALSA problem

wolflpz wolflpz at web.de
Tue Mar 2 09:28:09 PST 2010


I'm using SDL on an ARM based board running Linux (Olimex-AT91SAM9261) . I successfully cross-compiled, installed and tested the libraries (SDL, SDL_mixer) on the system. The sound output is done thru ALSA (SDL_AUDIODRIVER=alsa).

Now I'm trying to play ogg files. First I used the Mix_LoadWAV macro for playback. This worked, but the macro decompresses first the complete audio file into memory and then starts the playback. Thus leading to a long delay before playing the music.
Therefore I tried a different approach with the Mix_LoadMUS macro to play the ogg file. This function streams the files directly from the hard-disk and avoids the long decoding time. Unfortunately ALSA shows several buffer under-runs leading to a disrupted playback. To fix this I tried different buffer sizes, but the problem is still existent.

The code works fine on my host system, but not on the ARM target.

Any sort of help would be great!

Thanks in advance
Christian




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20100302/eb1e18f3/attachment.htm>


More information about the SDL mailing list