No Sound on Ubuntu 9.04 Using OSS

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
rohezal
New user
Posts: 3
Joined: 28 Jul 2009, 14:33

No Sound on Ubuntu 9.04 Using OSS

Post by rohezal »

Hi guys im using Ubuntu 9.04 on my laptop.

The soundcard is ATI HDA SBX00 (HD Audio controller ATI HD Audio).

Its a known problem that this card will only work with OSS and not with ALSA.
Battle for Wesnoth works with an OSS version of sdl.

Its seems that Warzone 2100 need ALSA for sound. Is there a work around? I still got pulseaudio installed but game uses normaly OSS at my system.
Disabling pulseaudio -k gave me a bug.

Here is the log from the console:
user@system:~$ warzone2100
AL lib: alsa.c:785: no playback cards found...
AL lib: alsa.c:853: no capture cards found...
AL lib: alSource.c:2291: alcDestroyContext(): 1 Source(s) NOT deleted
AL lib: alBuffer.c:1097: exit() 32 Buffer(s) NOT deleted
Maybe you can help me :)
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: No Sound on Ubuntu 9.04 Using OSS

Post by cybersphinx »

Warzone uses OpenAL, and you need to configure that to use OSS instead of ALSA. I guess Ubuntu uses OpenAL-Soft 1.8 which has its config file in /etc/openal/alsoft.conf. There you can choose the audio driver OpenAL uses (and you should also reduce the number of sources to 32 for now).
rohezal
New user
Posts: 3
Joined: 28 Jul 2009, 14:33

Re: No Sound on Ubuntu 9.04 Using OSS

Post by rohezal »

Yes it worked. Thank you :)

What have I done?

Changed:
drivers = # Sets the backend driver list order, comma-seperated. Unknown
# backends and duplicated names are ignored, and unlisted backends
# won't be considered for use. An empty list means the default.
# Default is:
# alsa,oss,dsound,winmm,wave
to:
drivers = oss # Sets the backend driver list order, comma-seperated. Unknown
# backends and duplicated names are ignored, and unlisted backends
# won't be considered for use. An empty list means the default.
# Default is:
# alsa,oss,dsound,winmm,wave