Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old May 5th, 2005   #1
Gandalf
Has an Ubuntu Drip
 
Gandalf's Avatar
 
Join Date: Apr 2005
Beans: 688
Dapper Drake Testing/
HOWTO: Hear multiple sounds using Both ESD & ALSA

Hello there,
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 ?? .

  1. We need to install libesd-alsa0 so
    Code:
    sudo apt-get install libesd-alsa0
  2. We need to create /etc/asound.conf, so
    Code:
    sudo gedit /etc/asound.conf
    Insert into it:
    Code:
    pcm.card0 {
    type hw
    card 0
    }
    
    pcm.!default {
    type plug
    slave.pcm "dmixer"
    
    }
    
    
    pcm.dmixer {
    type dmix
    ipc_key 1025
    slave {
    pcm "hw:0,0"
    period_time 0
    period_size 2048	#1024
    buffer_size 32768	#4096
    			#periods 128
    rate 48000		#44100
    }
    bindings {
    0 0
    1 1
    }
    }
  3. We need to change /etc/esound/esd.conf contents so:
    Code:
    sudo mv /etc/esound/esd.conf /etc/esound/esd.conf_backup
    sudo gedit /etc/esound/esd.conf
    Insert into it:
    Code:
    [esd]
    auto_spawn=1
    spawn_options=-terminate -nobeeps -as 2 -d default
    spawn_wait_ms=100
    # default options are used in spawned and non-spawned mode
    default_options=
  4. 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):
    Code:
    gstreamer-properties
    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.
Correct beep-media-player configuration:

* 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).

* 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 .
__________________
[My Blog] | [My Sites] | [My Ubuntu Guides]

doc.gwos.org, the real successor of Ubuntu Guide

Last edited by Gandalf; May 6th, 2005 at 12:14 AM..
Gandalf is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:39 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry