[SDL] SDL test program, no sound and no error either

Daniel Grace danwgrace at gmail.com
Fri Mar 7 08:18:15 PST 2008


I compiled and ran an SDL test program made in KDE KDevelop on gentoo.

The program runs but it does not produce a sound as expected.  Neither
does it output an error.  The source code is on this page:
http://gpwiki.org/index.php/C:Playing_a_WAV_Sound_File_With_SDL_mixer

Below are the outputs of various emerge commands:
tux ~ # emerge -pv sdl-mixer
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild   R   ] media-libs/sdl-mixer-1.2.8  USE="mikmod vorbis -mp3
-timidity" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB

tux ~ # emerge -pv libsdl
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild   R   ] media-libs/libsdl-1.2.11-r2  USE="X alsa opengl xv
-aalib -arts -custom-cflags -dga -directfb -esd -fbcon -ggi -libcaca
-nas -noaudio -nojoystick -novideo -oss (-svga) -xinerama" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB

I am running the program with the command like the following:
tux ~ # SDL_AUDIODRIVER=alsa ./yourapp

The file I am trying to play is a wave file, but I don't know any more
details about its format.

Any help would be appreciated, thanks.

Daniel


More information about the SDL mailing list