[SDL] SDL test program, no sound and no error either
Albert Zeyer
albert.zeyer at rwth-aachen.de
Fri Mar 7 08:37:24 PST 2008
Still a lot of things unclear:
Have you noticed, that you have timidity, mp3 and oss support disabled?
Was that your intention?
Can you show the full source of your app? There are only code snippets
on the site. Or have you used the SDL PlaySound.zip on the site?
Please post the output of amixer.
How long is the app running? Does it quit immediatly or does it run
exactly as long as the sound?
Post the output of the app.
Are you able to play the sound.wav by another player (for example VLC or
whatever you are using normally)?
Am Freitag, den 07.03.2008, 16:18 +0000 schrieb Daniel Grace:
> 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
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
More information about the SDL
mailing list