Crackling Sound issue work-around (for PA)

Gian Paolo Mureddu gmureddu at prodigy.net.mx
Wed Dec 10 01:39:19 EST 2008


If you are running a recent distribution (Ubuntu 8.10, Feodra 10, or any 
other distribution using PulseAudio by default), you will have to either 
change the prey launcher script or append an environment variable to 
your launch command (e.g. Desktop launcher). This variable is 
SDL_AUDIODRIVER=pulseaudio, which should make things much better. Also 
this problem seems to be an issue within SDL 1.2.13 and thus far I've 
seen it affect only Emu10K1 Creative Labs-based hardware... However from 
the other thread it would appear as if it also other cards not based 
around this driver do have issues (Audigy LS, Live 24-bit).

If you dare, you can modify the launcher script in $PREY_INSTALL_PATH/ 
prey, and somwehere at the top of the file (bellow the first comments, 
for example) append:

export SDL_AUDIODRIVER=pulseaudio

Alternatively, you may alter your session so that this variable is 
exported whenever you log into your session and as such any program 
using SDL 1.2.13 would use the correct SDL_AUDIODRIVER (in orther to 
achieve this, you can simply copy paste the following):

---- script ----

#!/bin/bash
#
# Set the default SDL_AUDIODRIVER variable to pulseaudio.

export SDL_AUDIODRIVER=pulseaudio

--- /script ---


Change the perms on the file to executable, place it somwhere in your 
PATH (i.e $HOME/bin; though most distros do not have such a directory, 
but do export the path in the PATH environment variable, so if yo do not 
have it, create it). If in GNOME, go to System -> Preferences -> 
Sessions* or System -> Preferences -> Personal -> Sessions**, add a new 
program, and simply write the name of the script you created. KDE users 
should be able to modify this from within the KDE Control Center (IIRC)

*On Debian/Ubuntu
** On Fedora and other distributions.



More information about the prey mailing list