-
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 ?? :-P.
- We need to install libesd-alsa0 so
Code:
sudo apt-get install libesd-alsa0
- 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
}
}
- 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=
- 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:
http://img104.echo.cx/img104/3140/sc...temssel.th.png
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).
* 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 :D.
-
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!
-
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 :D
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
-
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.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
excellent! Finally a fix for sound problems! Developers - Please fix it this way in the next release!
nix
-
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.
-
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. ](*,)
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Gandalf:
Just wanted to say that your HOWTO worked for me too. Thanks! :)
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by kb00heda
Gandalf:
Just wanted to say that your HOWTO worked for me too. Thanks! :)
no problem
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Thank's Gandalf,
after this modifications i can hear music with the BeepMediaPlayer and can start a video with gxine without a delayed audio :) . But i have still the problem with the RealPlayer. If i see a video with the RealPlayer all other sounds are down. The BeepPlayer shows the problem report "Can't open audio, please check the plugin...". Dukeinlondon's tip had no result. Any other tip's?
Regards
Michael
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
you're the man!! thanks
\\:D/ \\:D/ a lot ...
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Works great for me too. Only weird thing I noticed that when you hit test in the default-source section of gstreamer-properties I get this message "Failed to construct test pipeline for 'ALSA - Advanced Linux Sound Architecture'" I think this is a specific issue with the test function, because everything else is working beautifully. Thanks Gandalf.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
when i did this im unable to hear the system sounds and xmms vlc sounds, just skype sounds.
What did i do wrong?
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by manadskort
when i did this im unable to hear the system sounds and xmms vlc sounds, just skype sounds.
What did i do wrong?
I'm having the same issue right now, apparently there's a 'thing' where two different applications can't be writing to the same sound server. You'd think that would be possible... I mean even DirectX can do that.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
While this method DOES work, I noticed that my avis and mpgs all play choppy. Having multiple sounds play is great, but not at the cost of video framerates.
Excellent tut, but not for me.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by joekr
While this method DOES work, I noticed that my avis and mpgs all play choppy. Having multiple sounds play is great, but not at the cost of video framerates.
Excellent tut, but not for me.
Is this consistent for people?
What are the advantages of doing this, i thought they used Alsa by default anyway? When programs use dev/dsp does it no longer lock out everything else from using the sound device (like flash)?
I really just hope we can get polypaudio in the next version, seems a lot better.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Well I just gave in and tried it. Everything works pretty good but some things I still have issues with, namely stuff that uses /dev/dsp (vmware) will hog all the sound. Anyway to point stuff to use ESD instead or something?
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
After following this guide my SDL games ran horribly slow :-| so I just had to revert the process ](*,)
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
it's weird for some it doesn't work :o it works with every program/game for me :o
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by Gandalf
it's weird for some it doesn't work :o it works with every program/game for me :o
thanks for the great how to :).
When the system is heavy loaded, the sounds starts to sound wierd on skype, and sometimes i looses the connection.
Isnt that wierd?
I would be very happy if someone could tell me how to hear xmms sounds at the same time with the skype sounds.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Hello, I'm going to post my asound.conf file if others are having issues. The main reaon I'm posting is, looking over yours Gandalf, I don't think yours is setup for fullduplex operation. The only mixing going on with yours is for output not input. Now, I'm definately not an expert on creating these, but someone who seemed to know a fair amount about these configs on #alsa helped me.
Code:
pcm.card0 {
type hw
card 0
# mmap_emulation true
}
#pcm.dmix0 {
# type dmix
# ipc_key 34521
# slave {
# pcm "card0"
# }
#}
pcm.dmix0 {
type dmix
ipc_key 1024 ## needs to be a power of 2
slave {
pcm "hw:0"
period_time 0
period_size 1024
buffer_size 8192
# format S16_LE
rate 44100 ## not necessary
}
#slowptr true
}
pcm.dsnoop0 {
type dsnoop
ipc_key 2048
slave {
pcm "card0"
# rate 48000
}
}
pcm.asym0 {
type asym
playback.pcm "dmix0"
capture.pcm "dsnoop0"
}
pcm.pasym0 {
type plug
slave.pcm "asym0"
}
# 'dsp0' is espected by OSS emulation etc.
pcm.dsp0 {
type plug
slave.pcm "asym0"
}
ctl.dsp0 {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "asym0"
}
ctl.!default {
type hw
card 0
}
With this config, I can run multiple xmms's, beeps, rhtyhm or pretty much whatever while recording at the same time. You can test yours by running a player and then launching arecord from the cli.
About the rate setting, the person helping me with my config insisted that I don't need it, but when running esd, sound would be scratchy without it. Again, not being an expert on these things, I think it's beneficial to have the rate at your sound cards native rate, most cards are 48000 so change that if needed.
Also you might find sdl games no longer have sound here's a fix:
* SDL - now time to change behaviour of apps which uses SDL to play sound. SDL tries to use hw:0, and without intervention, it fails to open audio device. But SDL uses AUDIODEV environment variable, so it placed such file to /etc/profile.d/, example dmix_sdl.sh:
export AUDIODEV=default
and finally mplayer can be modified within the gui (gmplayer) but mplayer alone won't read that. Here's my ~/.mplayer/config
vo="xv"
ao="alsa:device=default"
The vo="xv" will set mplayer to use xv hardware overlay for video so most of you will want that as well if you haven't set it as such. I'm mainly use totem but it's nice to have mplayer working with this setup.
And the gstreamer-properties test with this setup will work for both playback and recording.
As gandalf said, with certain sound setups you might have issues, if so look at this page and search for your soundcard (it's where I got most of my info)
http://alsa.opensrc.org/index.php?page=DmixPlugin
and here at the same site their quick n dirty dmix esd arts sdl how to
http://alsa.opensrc.org/index.php?pa...nd+dirty+HOWTO
My final comment on this is two issues. This works for 99% of apps out there, but some older apps don't map properly, for ex I couldn't get quake3/et and teamspeak to play nice, but this is because my onboard sound only has software mixing, those with hardware mixing shouldn't have issue.
The other thing is I like to use the gnome option for another user to login without logging me out. But running esd in the one login holds the card, so the other user gets no sound. Again not sure if this is the case with hardware mixing cards. If someone could test that out, I'm curious.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Excellent how-to. Most of my games (UT2004, SimCity 3000U, Enemy Territory) required that I kill esd before being able to play with sound, and I always had to reboot afterward to get sound in Ubuntu back. After following this guide, the sound works flawlessly in everything. No more killing esd and rebooting! Thanks :D
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by Rehevkor
Excellent how-to. Most of my games (UT2004, SimCity 3000U, Enemy Territory) required that I kill esd before being able to play with sound, and I always had to reboot afterward to get sound in Ubuntu back. After following this guide, the sound works flawlessly in everything. No more killing esd and rebooting! Thanks :D
no problem, just for your record, no need to reboot ubuntu juste type esd in a console will turn on ESD again
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
is it just me?
I cant play music with xmms at the same time that im using skype.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Oh and for sdl games, install libsdl1.2debian-alsa
You could install the esd version but both will work and this way you can have sdl games work in another window manager where you might not be running esd.
It defaulted to libsdl1.2debian-oss. Not sure exactly why that doesn't work when alsa has oss emulation.
But really, can we not purge oss completely from a distribution yet?
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by Gandalf
no problem, just for your record, no need to reboot ubuntu juste type esd in a console will turn on ESD again
Well, I did that, but it would just play a series of pc speaker beeps and the interface sounds in Ubuntu still wouldn't play. It would only work if I rebooted.
Fortunately, I don't have to worry about that now :)
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
I have a soundblaster 24bit live on board card. Is this guide working for it also?
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
I tried this guide to get my M-Audio USB Quattro playing back w/o scratchy sound through ESD... worked wonderfully for the audio.
Unfortunately it seems to break my USB Best Data 56k modem, using the slmodem-2.9.10_USB package...
I've confirmed this a couple of times. Being new to linux, I reformatted, reinstalled Hoary. Modem works until I use this guide, then it doesn't!
Sound is great, but not quite as important as my internet connection. Is there a way the two can be reconciled or any clue as to why this would happen?
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by mortram
I tried this guide to get my M-Audio USB Quattro playing back w/o scratchy sound through ESD... worked wonderfully for the audio.
Unfortunately it seems to break my USB Best Data 56k modem, using the slmodem-2.9.10_USB package...
I've confirmed this a couple of times. Being new to linux, I reformatted, reinstalled Hoary. Modem works until I use this guide, then it doesn't!
Sound is great, but not quite as important as my internet connection. Is there a way the two can be reconciled or any clue as to why this would happen?
is there any configuration file of this modem drivers? if yes try to make it use Alsa instead of ESD
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
it's not configured for ALSA or ESD, there's no sound output. It's not that the switch to ALSA breaks the sound on the modem, it breaks the modem itself, which only spits out NO CARRIER messages after the switch to ALSA and won't pick up the line or dial. here's the makefile if that's of any consequence:
################################################## #########################
#
#
# Makefile -- modem Makefile.
#
# Copyright(c) 2003, Smart Link Ltd. (www.smlink.com)
# All rights reserved.
#
# Author: Sasha K (sashak@smlink.com)
#
#
################################################## #########################
#
################################################## #########################
KERNEL_DIR:=/lib/modules/$(shell uname -r)/build
# tools
INSTALL:=install
all: modem
#all: modem drivers
modem:
$(MAKE) -C $@ all
install: all install-drivers
$(INSTALL) -D -m 755 modem/slmodemd ${DESTDIR}/usr/sbin/slmodemd
$(RM) -rf ${DESTDIR}/var/lib/slmodem
$(INSTALL) -d -D -m 755 ${DESTDIR}/var/lib/slmodem
uninstall: uninstall-drivers
$(RM) ${DESTDIR}/usr/sbin/slmodemd
$(RM) -rf ${DESTDIR}/var/lib/slmodem
drivers:
$(MAKE) -C drivers KERNEL_DIR=$(KERNEL_DIR)
install-drivers: drivers
$(MAKE) install -C drivers KERNEL_DIR=$(KERNEL_DIR)
uninstall-drivers:
$(MAKE) uninstall -C drivers KERNEL_DIR=$(KERNEL_DIR)
# misc rules
sub-dirs:= modem drivers
.PHONY: $(sub-dirs) all old clean dep install
clean dep: %: %-sub-dirs
%-sub-dirs:
$(foreach dir,$(sub-dirs),$(MAKE) -C $(dir) $(patsubst %-sub-dirs,%,$@) && ) echo "done."
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
appears to be something called in the asound.conf, I tried commenting/uncommenting sections to see what happened (the expressions themselves make almost no sense to me other than the sample rates, etc.). It seems with the asound, I can either get the modem & no sound, the modem and scratchy sound, or great sound and no modem.
I found the polypaudio packages in Synaptic and installed those... on reboot the sound is clear and the modem's working, so I guess I've found my solution.
Thanks for the suggestions and the tutorial.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
so far, most everything i've tried work - xmms, totem, flash, OS sounds. the only thing that doesn't work is mplayer.
when i try to open anything with mplayer, i get "Could not open/initialize audio device -> no sound." error.
for settings, i have tried blank ao, ao=alsa, and ao=alsa:device=default
does anyone know how to fix this?
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by NeoChaosX
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. ](*,)
So nobody can help me with this issue?
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Same problems here: mplayer does not work and games that use SDL sounds freeze if another application with sound is on.
Any solutions :???:
I tried the ones posted in this forum, no success...
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by Gandalf
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 ?? :-P.
- We need to install libesd-alsa0 so
Code:
sudo apt-get install libesd-alsa0
- 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
}
}
- 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=
- 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:
http://img104.echo.cx/img104/3140/sc...temssel.th.png
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).
* 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 :D.
I follow this tutorial and now I lost all the sounds. How to undo these changes?
Thanks
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by hyapadi
I follow this tutorial and now I lost all the sounds. How to undo these changes?
Thanks
well delete /etc/asound.conf
cp /etc/esound/esd.conf_backup to /etc/esound/esd.conf
and remove the apt-getted packages
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
I'm probably not the first to wonder this, but is there any possibility of a good config like this getting into the default installation? And in the meantime, having it as a package that can be installed (via backports perhaps?)
It's a huge annoyance especially as it seems solutions are well known. Especially now when I'm converting people with my new Ubuntu CD:s this is one of the issues that makes even hardened commandline geeks roll their eyes...
Not to be too negative though, I'm happy there are solutions, just wondering if the solutions are generic enough to include from the start, and asking if it is possible.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by stoffe
I'm probably not the first to wonder this, but is there any possibility of a good config like this getting into the default installation? And in the meantime, having it as a package that can be installed (via backports perhaps?)
It's a huge annoyance especially as it seems solutions are well known. Especially now when I'm converting people with my new Ubuntu CD:s this is one of the issues that makes even hardened commandline geeks roll their eyes...
Not to be too negative though, I'm happy there are solutions, just wondering if the solutions are generic enough to include from the start, and asking if it is possible.
well it's not in default installation because not all audio card support this and this topic proove this
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
i followed this approch, and my rhythmbox, xmms and mplayer r all works well. but when i use esd failed, when i tried "esd -d default", it said:
- using device default
default: No such file or directory
and my mpd (with mixer_type "alsa" and mixer_device "default") failed with same message.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
i am using ubuntu amd64, and there is no libesd-alsa0 package on this arch. i downloaded the esound src package, and modified the debian/control file, added amd64 arch to libesd-alsa0 package, and recompile the deb package my self. i installed this libesd-alsa0 amd64 package, but it still has problem with alsa using dev default:
Code:
- using device default
default: No such file or directory
it seems the libesd-alsa0 package on amd64 arch is not workable, it still use oss, and maybe this is it is not included in amd64 arch officially.
i have to use aoss to start esd, but i cannot where gnome start it. so i used a temporary solution:
1. mv /usr/bin/esd /usr/bin/esd.orig
2. make a script /usr/bin/esd:
Code:
#!/bin/sh
aoss /usr/bin/esd.orig $*
now, it just can work, and the gnome's event sound as well.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
I'm not up to speed on amd stuff. Aren't all amd chips x86 compat? or just not the amd64 ones?
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by McQuaid
I'm not up to speed on amd stuff. Aren't all amd chips x86 compat? or just not the amd64 ones?
All AMD CPU's are x86 compatible of course.
By the way, I'm using this /etc/asound.cfg :
Quote:
pcm.card0 {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "dmixer"
}
pcm.dmixer {
type dmix
ipc_key 1025
slave {
pcm "hw:0,1"
period_time 0
period_size 1024
buffer_size 4096
periods 128
rate 44100
}
bindings {
0 0
1 1
}
}
And this /etc/esound/esd.conf :
Quote:
[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=
And using the esd sound server for gnome sounds, beep-media-player uses alsa. So, everything works (several applications can use the sound card at once).
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by McQuaid
Hello, I'm going to post my asound.conf file if others are having issues. The main reaon I'm posting is, looking over yours Gandalf, I don't think yours is setup for fullduplex operation. The only mixing going on with yours is for output not input. Now, I'm definately not an expert on creating these, but someone who seemed to know a fair amount about these configs on #alsa helped me.
.
Thanks! Your asound.cfg worked fine :) can now listen to multiple sounds! Great help guys!
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
I have every program using dmix happily but skype
any idea?
skype is taking over the whole sound system
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Has anyone got this working with an amd64? Step 1 gives me the following:
Code:
kcs@xorb:~$ sudo apt-get install libesd-alsa0
Reading package lists... Done
Building dependency tree... Done
Package libesd-alsa0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libesd-alsa0 has no installation candidate
kcs@xorb:~$
I'd love to do this howto but it doesn't appear amd64 friendly.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by McQuaid
Hello, I'm going to post my asound.conf file if others are having issues. The main reaon I'm posting is, looking over yours Gandalf, I don't think yours is setup for fullduplex operation. The only mixing going on with yours is for output not input. Now, I'm definately not an expert on creating these, but someone who seemed to know a fair amount about these configs on #alsa helped me.
Code:
pcm.card0 {
type hw
card 0
# mmap_emulation true
}
#pcm.dmix0 {
# type dmix
# ipc_key 34521
# slave {
# pcm "card0"
# }
#}
pcm.dmix0 {
type dmix
ipc_key 1024 ## needs to be a power of 2
slave {
pcm "hw:0"
period_time 0
period_size 1024
buffer_size 8192
# format S16_LE
rate 44100 ## not necessary
}
#slowptr true
}
pcm.dsnoop0 {
type dsnoop
ipc_key 2048
slave {
pcm "card0"
# rate 48000
}
}
pcm.asym0 {
type asym
playback.pcm "dmix0"
capture.pcm "dsnoop0"
}
pcm.pasym0 {
type plug
slave.pcm "asym0"
}
# 'dsp0' is espected by OSS emulation etc.
pcm.dsp0 {
type plug
slave.pcm "asym0"
}
ctl.dsp0 {
type hw
card 0
}
pcm.!default {
type plug
slave.pcm "asym0"
}
ctl.!default {
type hw
card 0
}
Finally, an asoud.conf that works for my sound card (which is whatever on-board card is on the Centrino in a Dell Inspiron 8600). I now have no lag in my videos or mp3s! Thanks!
Quote:
Originally Posted by McQuaid
and finally mplayer can be modified within the gui (gmplayer) but mplayer alone won't read that. Here's my ~/.mplayer/config
vo="xv"
ao="alsa:device=default"
The vo="xv" will set mplayer to use xv hardware overlay for video so most of you will want that as well if you haven't set it as such. I'm mainly use totem but it's nice to have mplayer working with this setup.
Unrelated... but I still can't get the xv option to display at the correct aspect ratio... ah well.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
None of the asound's posted let me have multiple programs using Alsa at the same time, i get An error saying the device 'Alsa' is already in use, and some programs dont even load untill i close the other program that was using Alsa. :(
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
that's great! worked fine here.
just one little thing.
i couldn't get xmms and aMSN working together, but is really simple
just set the sound server from "play $sound" to "aplay $sound" (alsa i suppose)
tks!
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by Rickie
None of the asound's posted let me have multiple programs using Alsa at the same time, i get An error saying the device 'Alsa' is already in use, and some programs dont even load untill i close the other program that was using Alsa. :(
Maybe you have to update alsa:
sudo apt-get install libesd-alsa0
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Breezy fixed this issue btw. But once agian very good fix for Horay users. :)
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by McQuaid
Hello, I'm going to post my asound.conf file if others are having issues. The main reaon I'm posting is, looking over yours Gandalf, I don't think yours is setup for fullduplex operation. The only mixing going on with yours is for output not input. Now, I'm definately not an expert on creating these, but someone who seemed to know a fair amount about these configs on #alsa helped me.
I tried both of these asound.conf's. Gandalf's worked ok but did not solve the problem of audacity coughing up errors. McQuaid's gave me horrible scratchy sound so I killed that one. So I am back to Gandalf's original approach.
But I also have a little hackery that allows audacity to start, and should help with anything else that does not like esd. It is a wrapper script that turns off esd temporarily and then restarts it.
Create a file /usr/bin/esdoss with these contents.
Code:
#! /bin/sh
gconftool-2 --set --type bool /desktop/gnome/sound/enable_esd "false"
exec "$@"
gconftool-2 --set --type bool /desktop/gnome/sound/enable_esd "true"
Make this file executable:
Code:
sudo chmod a+x /usr/bin/esdoss
Then edit the menu entry for audacity to include this wrapper script. I did this with smeg.
Code:
/usr/bin/esdoss audacity
You can do the same with other programs if they have sound issues under esd.
If you kill your system following these instructions, I don't know nothing about it. I swear.
:-)
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
I too am using AMD64, and can't do this Howto. :/
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by ksmith
Has anyone got this working with an amd64? Step 1 gives me the following:
Code:
kcs@xorb:~$ sudo apt-get install libesd-alsa0
Reading package lists... Done
Building dependency tree... Done
Package libesd-alsa0 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libesd-alsa0 has no installation candidate
kcs@xorb:~$
I'd love to do this howto but it doesn't appear amd64 friendly.
Yup. Same here. Does anyone know if getting multiple sounds to work is possible with amd64?
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by zue
Yup. Same here. Does anyone know if getting multiple sounds to work is possible with amd64?
I get that same error :(
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
I believe it's because libesd0-alsa is not available on the AMD64 repositories.
I've requested this in the backports forum about a week ago, but so far no reponse, and the post is already pushed down to the 3rd page ... :(
It's a pity that AMD64 application support for Ubuntu seems to be neglected.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by DancingSun
I believe it's because libesd0-alsa is not available on the AMD64 repositories.
I've requested this in the backports forum about a week ago, but so far no reponse, and the post is already pushed down to the 3rd page ... :(
It's a pity that AMD64 application support for Ubuntu seems to be neglected.
I feel so neglected. ;)
Do you think in the next release (when is that.. October?) AMD64 systems will have more application support?
It would be nice to have sound (http://www.ubuntuforums.org/showthread.php?t=48490). sigh.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Congrats :-)
Your tutorial is very helpful.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
hi to all I have a problem following this tutorial and ths is what I got
gstreamer-properties
** (gstreamer-properties:9102): WARNING **: Pixbuf theme: Cannot load pixmap file /usr/share/icons/SphereCrystal/scalable/stock: Image file '/usr/share/icons/SphereCrystal/scalable/stock' contains no data
(gstreamer-properties:9102): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `pixbuf != NULL' failed
(gstreamer-properties:9102): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `pixbuf != NULL' failed
(gstreamer-properties:9102): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `pixbuf != NULL' failed
(gstreamer-properties:9102): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `pixbuf != NULL' failed
(gstreamer-properties:9102): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `pixbuf != NULL' failed
(gstreamer-properties:9102): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `pixbuf != NULL' failed
(gstreamer-properties:9102): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `pixbuf != NULL' failed
(gstreamer-properties:9102): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `pixbuf != NULL' failed
(gstreamer-properties:9102): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `pixbuf != NULL' failed
(gstreamer-properties:9102): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `pixbuf != NULL' failed
(gstreamer-properties:9102): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `pixbuf != NULL' failed
(gstreamer-properties:9102): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `pixbuf != NULL' failed
if someone can help me please
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
** (gstreamer-properties:9102): WARNING **: Pixbuf theme: Cannot load pixmap file /usr/share/icons/SphereCrystal/scalable/stock: Image file '/usr/share/icons/SphereCrystal/scalable/stock' contains no data
This has nothing to do with the sound fixes. It's complaining about missing files in the iconset you're using.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by Gandalf
Change both (in the Audio Tab not the Video) from ESD to ALSA
Hi I've just tried doing this part, and its fine for sink (as in click test plays a sound fine) but for source if I click test I get the message:
Quote:
Failed to construct test pipeline for 'ALSA - Advanced Linux Sound Architecture'
Any idea why this is?
Thanks
DiGiTaLFX
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
This is because gandalf's original settings don't allow for "full duplex" (the ability to record and play at the same time). Use the following /etc/asound.conf for full duplex (or at least, it works for me):
Code:
pcm.card0 {
type hw
card 0
mmap_emulation true
}
#DMIX output device
pcm.!output {
type dmix
ipc_key 1234
ipc_key_add_uid 1
slave {
pcm "card0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
}
bindings {
0 0
1 1
}
}
#
# DSNOOP input device
#
pcm.!input {
type dsnoop
ipc_key 4321
ipc_key_add_uid 1
slave {
pcm "card0"
period_time 0
period_size 1024
rate 44100
}
}
#
# ASYM duplex device
#
pcm.!duplex {
type asym
playback.pcm "output"
capture.pcm "input"
}
#
# Make the duplex device default
#
pcm.!default {
type plug
slave.pcm "duplex"
}
#
# OSS Compability
pcm.!dsp0 {
type plug
slave.pcm "duplex"
}
ctl.!mixer0 {
type hw
card 0
}
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
OK that half does it. But sound was very distorted it seemed, and clicking test on the source worked, but then clicking ok crashed the program. I've gone back to other other config for now. But i think I'll do a bit of reading about this once i've got a properly working system (low priority for me atm).
Cheers neway
DiGiTaLFX
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Varunus:
Quote:
pcm.!duplex {
type asym
playback.pcm "output"
capture.pcm "input"
}
Don't do this. This part of your config breaks quite a few things, including sound in Gaim. The other thread about setting up duplex sound, on page 5, instructs you should have that section set up like this:
Quote:
pcm.!default {
type plug
slave.pcm "output"
}
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
I haven't had any problems using this config on my sound card. (Everything works for me...haven't run into an app yet that doesn't have sound and is supposed to...) My sound card isn't exactly that great either, its one of those intel integrated AC97 ones. Ah well, I guess that config doesn't work for everyone. Thanks for the warning.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Hi,
your HowTo worked great for me. Sound whereever and whatever i click or run ;-)
I just wanted to contribute that when i set the KDE sound daemon via kcontrol to ESD i even get sound in KDE apps while running Gnome (what didn't work for me before).
I use some apps in Gnome like the nice K3B and Kile. And now they work with sound and integrate even better that way...
... so what i just trying to say: Thank you!
Greetings
André
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by varunus
This is because gandalf's original settings don't allow for "full duplex" (the ability to record and play at the same time). Use the following /etc/asound.conf for full duplex (or at least, it works for me):
Code:
pcm.card0 {
type hw
card 0
mmap_emulation true
}
#DMIX output device
pcm.!output {
type dmix
ipc_key 1234
ipc_key_add_uid 1
slave {
pcm "card0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
}
bindings {
0 0
1 1
}
}
#
# DSNOOP input device
#
pcm.!input {
type dsnoop
ipc_key 4321
ipc_key_add_uid 1
slave {
pcm "card0"
period_time 0
period_size 1024
rate 44100
}
}
#
# ASYM duplex device
#
pcm.!duplex {
type asym
playback.pcm "output"
capture.pcm "input"
}
#
# Make the duplex device default
#
pcm.!default {
type plug
slave.pcm "duplex"
}
#
# OSS Compability
pcm.!dsp0 {
type plug
slave.pcm "duplex"
}
ctl.!mixer0 {
type hw
card 0
}
It did the trick for me. At least it made ALSA work again on my computer. No multiple sounds though.
Thanks anyway
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Working great for me. Many moons ago I did this in Gentoo as well, so as soon as I saw ESD in top, I scrambled straight to this thread.
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Hi Guys,
Thanks for this, for a newbie can you please tell me how/where to
"change ubuntu sound server to alsa" ??
I'm running hoary on a dell d410 notebook.
Thanks
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:
http://img104.echo.cx/img104/3140/s...stemssel.th.png
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Quote:
Originally Posted by jamaas
Hi Guys,
Thanks for this, for a newbie can you please tell me how/where to
"change ubuntu sound server to alsa" ??
I'm running hoary on a dell d410 notebook.
Thanks
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:
http://img104.echo.cx/img104/3140/s...stemssel.th.png
In your upper panel: System - Preferences - Multimedia Streams Selector
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
i've a problem with e17 and polyaudio. I cant get fullscreen into e17 using mplayer but in gnome i havent this problem. I know it's polyaudio because before i could get fullscreen but i've installed polyaudio to can hear multiple sounds.
Any idea?
thanks
-
Re: HOWTO: Hear multiple sounds using Both ESD & ALSA
Fabulous. I couldn't get Skype working - it used to hang whenever I tried to dial out - and I tried this how-to in desperation.
It worked like a charm. Thank you.