This is just a clean and better organised guide of varunus's HowTo located here. So primarily all the credits go to him.
This HowTo will give you instruction on enabling software mixing, to avoid application problems like Audacity needing killall esd to work as well as Skype [now Skype will no longer crash if you receive a message or a call (when it try to play sound in fact)], so let's get to work shall we ?? .
- We need to install libesd-alsa0 so
sudo apt-get install libesd-alsa0
- We need to create /etc/asound.conf, so
Insert into it:
sudo gedit /etc/asound.conf
period_size 2048 #1024
buffer_size 32768 #4096
rate 48000 #44100
- We need to change /etc/esound/esd.conf contents so:
Insert into it:
sudo mv /etc/esound/esd.conf /etc/esound/esd.conf_backup
sudo gedit /etc/esound/esd.conf
spawn_options=-terminate -nobeeps -as 2 -d default
# default options are used in spawned and non-spawned mode
- Now You need to change ubuntu sound server to alsa (you can leave it ESD but better use alsa because it has better sound handling):
Change both (in the Audio Tab not the Video) from ESD to ALSA so it looks just like the picture:
All that's left now is to restart your computer (after restart you must hear sound) to enable these changes. Also configure XMMS or Beep-media-player (or any player) to use ALSA instead of eSound/ESD. If you hear a strange sound, just change everything back to ESD. If everything worked correctly, now Audacity & Skype will work normally and all the program will play sound using either Alsa or ESD.
* If you couldn't play any sounds using ALSA then your /etc/asound.cond & /etc/esound/esd.conf needs some more advanced tweaking (or your sound card just won't support it).
Correct beep-media-player configuration:
* The codes above are to be done inside a terminal window.
Thanks to varunus for the original HowTo and to Vaportrail for the correct /ets/asound.conf contents.
Enjoy everyone .