Author Topic: ALSA Sound?  (Read 2558 times)

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
ALSA Sound?
« on: August 21, 2006, 10:04:08 pm »
Q3 is open source, can't we have ALSA sound instead of OSS, now? I'd like to be able to use XMMS with Tremulous, without the use of ESD.

Stof

  • Posts: 1343
  • Turrets: +1/-1
ALSA Sound?
« Reply #1 on: August 21, 2006, 10:40:39 pm »
Isn't that possible already ? Using OpenAL + ALSA backend for example.
urphy's rules of combat
8 ) Teamwork is essential; it gives the enemy someone else to shoot at.
18 ) Make it too tough for the enemy to get in and you can't get out.

Timbo

  • Administrator
  • Posts: 447
  • Turrets: +155/-161
ALSA Sound?
« Reply #2 on: August 21, 2006, 10:43:04 pm »

tjw

  • Posts: 210
  • Turrets: +10/-0
ALSA Sound?
« Reply #3 on: August 21, 2006, 10:46:46 pm »
SDL has alsa support, it just might not be being used.  You can force SDL to use ALSA by setting the SDL_AUDIODRIVER env variable to "alsa".

For example, start tremulous like this:

Code: [Select]

SDL_AUDIODRIVER=alsa tremulous


The default audio driver is dependent on your SDL library.   It seems like ALSA should be the default, but on my distro (Slackware) the default is "dsp" (a.k.a. OSS)

Dretch

  • Posts: 1
  • Turrets: +0/-0
ALSA Sound?
« Reply #4 on: August 23, 2006, 10:18:08 pm »
Tremulous uses SDL, which works with ALSA. If you are using Ubuntu (or Debian) and want all SDL programs to use ALSA and only ALSA, use synaptic, aptitude, apt-get or somesuch to install libsdl1.2debian-alsa. It should replace libsdl1.2debian-all, which also works with ALSA, but has to be told which sound system you want to use. After the install Tremulous should be incapable of using OSS anymore.