Page 1 of 8 123 ... LastLast
Results 1 to 10 of 135

Thread: HOWTO: Hear multiple sounds using Both ESD & ALSA

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Beans
    645
    Distro
    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 .
    Last edited by Gandalf; May 6th, 2005 at 05:14 AM.
    [My Blog] | [My Sites] | [My Ubuntu Guides]

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

  2. #2
    Join Date
    Oct 2004
    Location
    37.8N 97.2W
    Beans
    2,191
    Distro
    Dapper Drake Testing/

    Re: HOWTO: Hear mutliple sound using Both ESD & ALSA

    Thanks so much for posting this. I'd given up and was using polypaudio.
    The method you presented worked great!
    Everybody can be great because everybody can serve.
    You only need a heart of grace. A soul generated by love.

    - Martin Luther King, Jr.

    Help A Child Today

  3. #3
    Join Date
    Apr 2005
    Beans
    645
    Distro
    Dapper Drake Testing/

    Re: HOWTO: Hear mutliple sound using Both ESD & ALSA

    Quote Originally Posted by Xian
    Thanks so much for posting this. I'd given up and was using polypaudio.
    The method you presented worked great!
    no problem, i just made it clearer
    [My Blog] | [My Sites] | [My Ubuntu Guides]

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

  4. #4
    Join Date
    Jul 2005
    Beans
    Hidden!
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: HOWTO: Hear mutliple sound using Both ESD & ALSA

    Quote Originally Posted by Xian
    Thanks so much for posting this. I'd given up and was using polypaudio.
    The method you presented worked great!
    I read that polypaudio is the "new" ESD, so why turning back to the "old" ESD?
    The Wise are not Erudite, the Erudite not Wise - Lao Tzu

  5. #5
    Join Date
    Nov 2005
    Beans
    15

    Re: HOWTO: Hear multiple sounds using Both ESD & ALSA

    Am I correct this is to enable multiple users of the sound?
    Am using 5.10 and tried the instructions in page 1 but can't download the file.
    Is there a new instruction for 5.10?

    Thanks

  6. #6
    Join Date
    Mar 2005
    Location
    Ålsgårde, Denmark
    Beans
    939
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: HOWTO: Hear multiple sounds using Both ESD & ALSA

    Thanks! It works great.

  7. #7
    Join Date
    Mar 2005
    Location
    London
    Beans
    40

    Cool Re: HOWTO: Hear multiple sounds using Both ESD & ALSA

    you might find that realplayer still doesn't work after switching to alsa. this is because it is looking for /dev/dsp which is the oss device. Fortunately, alsa includes oss emulation. to enable it, just type

    Code:
    modprobe -v snd-pcm-oss
    this will create the /dev/dsp device, routed to alsa.

    Realplayer (and other oss only apps, no doubt) then works.

    If that works fine, then just add snd-pcm-oss to the file /etc/modules

    it will be loaded automatically at boot.
    When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong.

    R. Buckminster Fuller

  8. #8
    Join Date
    Feb 2005
    Beans
    Hidden!

    Re: HOWTO: Hear multiple sounds using Both ESD & ALSA

    Quote Originally Posted by dukeinlondon
    you might find that realplayer still doesn't work after switching to alsa. this is because it is looking for /dev/dsp which is the oss device. Fortunately, alsa includes oss emulation. to enable it, just type

    Code:
    modprobe -v snd-pcm-oss
    this will create the /dev/dsp device, routed to alsa.

    Realplayer (and other oss only apps, no doubt) then works.

    If that works fine, then just add snd-pcm-oss to the file /etc/modules

    it will be loaded automatically at boot.
    It worked without that here.
    Sylvia: Look at what you've done to him!
    Christof: I have given Truman the chance to lead a normal life. The world, the place you live in, is the sick place.

  9. #9
    Join Date
    Jan 2005
    Location
    San Jose, CA
    Beans
    494
    Distro
    Kubuntu 6.10 Edgy

    Re: HOWTO: Hear multiple sounds using Both ESD & ALSA

    period_size 2048 #1024
    buffer_size 32768 #4096

    Using these values caused my SDL games to go out of sync. If I use the smaller values, the sync is fixed but some videos have scratchy sound.
    What's wrong with closed and open source co-exisiting?

  10. #10
    Join Date
    Mar 2005
    Beans
    76

    Re: HOWTO: Hear multiple sounds using Both ESD & ALSA

    Gandalf:

    Just wanted to say that your HOWTO worked for me too. Thanks!

Page 1 of 8 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •