Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Linux - Games This forum is for all discussion relating to gaming in Linux.


  Search this Thread
Old 07-11-2007, 01:34 PM   #1
Registered: Aug 2005
Distribution: Zenwalk
Posts: 42

Rep: Reputation: 15
Question Setting SDL up (sound in games)


Lately I fired up one or two games on Zenwalk and found out that I can only hear sound when I plug my headphones into my sound card. However, my computer is connected to my Dolby Digital/DTS receiver via a single optical cable, connected to the S/PDIF of my onboard sound card. Generally this is working just fine (read: I have sound and can listen to music and watch DVDs). But how do I tell libSDL to use the S/PDIF (hw:0,2) of my sound card? (I read something about an AUDIODEV=hw:1,0 syntax on DOSBox - where can I set that up?).

Any help appreciated.
Old 07-15-2007, 09:32 AM   #2
Registered: Aug 2005
Distribution: Zenwalk
Posts: 42

Original Poster
Rep: Reputation: 15
Okay, I finally solved the problem for some of my applications/games. At least, when I define the audio driver via the SDL variable "SDL_AUDIODRIVER=alsa" I have sound in DosBox and ScummVM. However, when I try to fire up the Robin Hood demo with this variable, the demo crashes.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
AMD64 and SDL games segfaults... ssobeht Debian 2 06-06-2006 02:25 PM
SDL sound is very jerky Belegdol Linux - Software 0 07-01-2005 12:55 PM
sdl games are slow extremely slow linksocc Linux - Software 7 01-17-2004 03:53 PM
[SDL] help setting framerate?? stateq2 Programming 2 11-25-2003 10:45 AM
Reinstalled SDL, no sound hydro Linux - Newbie 0 08-01-2003 11:45 PM > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 08:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration