The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
October 15, 2024, 05:11:56 am
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Ubuntu sound problems solved
« previous next »
Pages: [1] Print
Author Topic: Ubuntu sound problems solved  (Read 2460 times)
Nician
Zebranky food
*
Offline Offline

Posts: 1



View Profile
Ubuntu sound problems solved
« on: June 16, 2008, 07:06:25 am »

I was unable to get sound on Ubuntu 8.04.

I had installed the Ubuntu uqm packages and downloaded and unpacked the -voice and -3domusic .uqm files and unpacked them in the content tree.

Sound is working (Rythmbox, flash player, etc.) but I had two problems with uqm

First, with my default Ubuntu install, I got the following error that prevented the game from even starting unless sound was disabled (--sound=none)

ALSA lib pcm_dmix.c:874:(snd_pcm_dmix_open) unable to open slave

Hacking on ALSA/Pulseaudio, (setting Pulse as the default in .asoundrc) could make the error go away and the game would start, but still no sound.  And upon exit, the game would hang.  So I assume that the sound thread is blocking someplace...

In searching further, I found this:
http://www.pulseaudio.org/wiki/PerfectSetup

which mentions that SDL 1.2.12 has direct support for PulseAudio, but a default install doesn't include the pulse support, rather it selects only alsa in the form of package "libsdl1.2debian-alsa"

So I replaced it with "libsdl1.2debian-all" and then launch uqm with "export SDL_AUDIODRIVER=pulse"

Tada!!  Sound, and quiting the game exits immediately.

FYI
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!