Tremulous Forum

General => Troubleshooting => Topic started by: lazy on October 15, 2009, 06:02:50 pm

Title: Broken sound in Ubuntu Karmic (1.1.0-4.1build1)
Post by: lazy on October 15, 2009, 06:02:50 pm
Hi,
The sound is horribly broken with or without Openal. Any tips to fix the sound system would be appreciated.

Code: [Select]
~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Audigy2 [SB Audigy 2 [SB0240]], device 0: emu10k1 [ADC Capture/Standard PCM Playback]
  Subdevices: 31/32
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
  Subdevice #8: subdevice #8
  Subdevice #9: subdevice #9
  Subdevice #10: subdevice #10
  Subdevice #11: subdevice #11
  Subdevice #12: subdevice #12
  Subdevice #13: subdevice #13
  Subdevice #14: subdevice #14
  Subdevice #15: subdevice #15
  Subdevice #16: subdevice #16
  Subdevice #17: subdevice #17
  Subdevice #18: subdevice #18
  Subdevice #19: subdevice #19
  Subdevice #20: subdevice #20
  Subdevice #21: subdevice #21
  Subdevice #22: subdevice #22
  Subdevice #23: subdevice #23
  Subdevice #24: subdevice #24
  Subdevice #25: subdevice #25
  Subdevice #26: subdevice #26
  Subdevice #27: subdevice #27
  Subdevice #28: subdevice #28
  Subdevice #29: subdevice #29
  Subdevice #30: subdevice #30
  Subdevice #31: subdevice #31
card 0: Audigy2 [SB Audigy 2 [SB0240]], device 2: emu10k1 efx [Multichannel Capture/PT Playback]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: Audigy2 [SB Audigy 2 [SB0240]], device 3: emu10k1 [Multichannel Playback]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Audigy2 [SB Audigy 2 [SB0240]], device 4: p16v [p16v]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Title: Re: Broken sound in Ubuntu Karmic (1.1.0-4.1build1)
Post by: kevlarman on October 15, 2009, 07:08:22 pm
get rid of pulseaudio
Title: Re: Broken sound in Ubuntu Karmic (1.1.0-4.1build1)
Post by: lazy on October 15, 2009, 08:24:12 pm
get rid of pulseaudio

Well, I'm not going to get rid of Pulseaudio because one program does not work. Anyone know what the real fix is?
Title: Re: Broken sound in Ubuntu Karmic (1.1.0-4.1build1)
Post by: mooseberry on October 15, 2009, 08:29:23 pm
get rid of pulseaudio

Well, I'm not going to get rid of Pulseaudio because one program does not work. Anyone know what the real fix is?

The real problem is pulseaudio. That is the reason why your sound isn't working. And you don't have to "get rid" of it. Just disable it while you play if want pulseaudio so bad.
Title: Re: Broken sound in Ubuntu Karmic (1.1.0-4.1build1)
Post by: David on October 15, 2009, 08:36:50 pm
Why the hell would you want a sound server nowadays?
Title: Re: Broken sound in Ubuntu Karmic (1.1.0-4.1build1)
Post by: Bissig on October 16, 2009, 12:19:06 am
At current pulseaudio is in no state to be useful. It needs major development to actually become useful.
Title: Re: Broken sound in Ubuntu Karmic (1.1.0-4.1build1)
Post by: Vector_Matt on October 31, 2009, 07:33:42 pm
Disabling Pulseaudio fixed it for me, thanks guys. ;D
Title: Re: Broken sound in Ubuntu Karmic (1.1.0-4.1build1)
Post by: lazor on November 02, 2009, 01:00:01 am
More specifically PulseAudio is fine, but uses many buggy audio driver features.  Kernel upgrades are more likely to fix your problem than PulseAudio updates.
Title: Re: Broken sound in Ubuntu Karmic (1.1.0-4.1build1)
Post by: Teapot on November 02, 2009, 01:48:51 pm
Alrighty guys. Short and sweet fix.
sudo aptitude install libsdl1.2debian-pulseaudio;sudo aptitude remove libsdl1.2debian-alsa

Edit: Actually, the first part would do the trick. This causes the latter to be removed anyway.
sudo aptitude install libsdl1.2debian-pulseaudio
Title: Re: Broken sound in Ubuntu Karmic (1.1.0-4.1build1)
Post by: Odin on November 02, 2009, 08:42:16 pm
One would wonder why the alsa-enabled version of libsdl is installed when a pulseaudio-capable version is readily available instead.
Title: Re: Broken sound in Ubuntu Karmic (1.1.0-4.1build1)
Post by: Pythonic on November 02, 2009, 10:09:53 pm
Removing (actually renaming /usr/bin/pulseaudio) fixed my sound problems, too.  Sound was working on Jaunty, then I upgraded to Karmic today, and Exaile and Rhythmbox both threw errors when attempting to play a song.  Two errors were thrown: "data stack overflow" and "pa_datastream_size" error.  video sound worked until Exaile or Rhythmbox threw one of those errors and then video sound would break, too.  Re-login, video sound work, try to play a song, it would throw an error, and video sound would go out again.

I finally renamed /usr/bin/pulseaudio to effectively remove it, rebooted and no sound problems anymore.  Sound card is on-board Realtek ALC1200.

I imagine there is truth to Pulseaudio's repeated defense it is flaky drivers and not "us," but why in so many cases when the same drivers are used with ALSA the problems disappear?  No disrespect for the pulseaudio developers, but they do seem to be a little bit defensive.
Title: Re: Broken sound in Ubuntu Karmic (1.1.0-4.1build1)
Post by: kevlarman on November 02, 2009, 10:26:03 pm
pulseaudio uses alsa's drivers, so that isn't much of an excuse.
Title: Re: Broken sound in Ubuntu Karmic (1.1.0-4.1build1)
Post by: UniqPhoeniX on November 03, 2009, 12:21:21 am
I thought the excuse was 'poorly implemented/rushed in ubuntu' O.o
Title: Re: Broken sound in Ubuntu Karmic (1.1.0-4.1build1)
Post by: Teapot on November 03, 2009, 02:58:14 am
pulseaudio uses alsa's drivers, so that isn't much of an excuse.
I thought the excuse was 'poorly implemented/rushed in ubuntu' O.o
I believe both were excuses. PulseAudio utilises relatively untested code in the alsa drivers and Ubuntu does a poor job of packaging their code. The main dev doesn't seem to shy away from this though. As best I recall, he says a break anywhere in the sound stack is a failure and should be fixed so they fix it themselves.

Anyway, it works for me and actually fixes some issues I had so I'm happy enough. :P