LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-08-2004, 08:54 AM   #1
Icetec
Member
 
Registered: Oct 2004
Posts: 33

Rep: Reputation: 15
ALSA, only one sound at a time


I am having some problems with my sound in Slackware 10. There was no problem configuring ALSA and the sounds play perfectly. The problems is that it only plays one sound at a time. If 50 people tell me something while I listen to a song, I have to listen to the sound when someone sends me a message 50 times in a row before the next song starts. Nedless to say it is slightly annoying. I have searched the forums here, but I haven't found anything that helped me. Is there a sollution to this?
 
Old 10-08-2004, 09:45 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
whebn you say sends you a message.. are we talking about kopete ? (the kde messenger)

kopete uses ARTS, music programs usually use ALSA.
you can only use one at a time.

ALSA is direct acess, only one program at a time, ARTS is a server running on top of alsa that allows mutiple sounds to play at once...

try setting your media player whatever it is to use ARTS output instead of alsa.

also, make sure your sound card supports multiple audio channels ?

many crappy on board sound cards do not.
 
Old 10-08-2004, 09:47 AM   #3
christhom
Member
 
Registered: Sep 2004
Distribution: Debian sarge/sid
Posts: 41

Rep: Reputation: 15
gee, some hardware info my be helpful here. The answer is probably simple, in that I'd guess your sound hardware has no inbuilt (hardware) mixer, so it can't mix to input streams into one output stream. If there's no hardware, it just can't be done.

easiest way around this is to run "esd" the e-sound daemon, which is a software audio mixer. set things like xmms to use the esd output driver instead of native or alsa, and you should now be able to play multiple sounds from multiple sources at the same time.

I haven't a clue what you mean by "people telling me something" though...

EDIT: Above poster beat me to it. ARTS and esd will do essentially the same thing. arts looks a bit more complicated, though I've never used it...

Last edited by christhom; 10-08-2004 at 09:51 AM.
 
Old 10-08-2004, 09:57 AM   #4
Icetec
Member
 
Registered: Oct 2004
Posts: 33

Original Poster
Rep: Reputation: 15
I have no idea what the soundcards exact name is. ALSA recogizes it as a onboard nForce 3 card which is probably right though. And I am using Beep Media Player, and I have chosen esound as the output. The problem is that BMP is the only app where I can chose the output. And whenever I am trying to start a game it says that Directsound is not found. May have something to do with Wine rather than the sound though?
 
Old 10-08-2004, 10:17 AM   #5
christhom
Member
 
Registered: Sep 2004
Distribution: Debian sarge/sid
Posts: 41

Rep: Reputation: 15
ok, now we're into a totally different kettle of fish. You won't have directsound, because that's part of the windows DirectX 3D package (windows version of OpenGL). You won't ever get this! Maybe wine can do it, but I haven't a clue and I wouldn't count on it.

xmms will allow you to output to esd too. Make sure you have esd installed and running. "esd &" in a terminal should be sufficient. then fire up two songs in bmp and xmms and see if they overlay.

n.b. when esd starts up, you should here a series of rising beeps. you can disable these with the "-nobeeps" option, but they're handy to hear the first time to know things are working correctly.
 
Old 10-08-2004, 10:28 AM   #6
Icetec
Member
 
Registered: Oct 2004
Posts: 33

Original Poster
Rep: Reputation: 15
I figured Directsound wouldn't work, but that is not the main problem. Even if I get BMP and XMMS to play to songs at the same time I still wont get GAIM and other programs to use esound, right?
 
Old 10-08-2004, 10:33 AM   #7
christhom
Member
 
Registered: Sep 2004
Distribution: Debian sarge/sid
Posts: 41

Rep: Reputation: 15
they should. try it and see! I've never used gaim so I haven't a clue what it's about. but mozilla happily mixes with xmms on my machine under esd, and they refuse to play together without it. I think mozilla access /dev/dsp directly, and that it's intercepted, or something like that. I've never probed it too much in the past, since it "just worked".
 
Old 10-08-2004, 10:45 AM   #8
Icetec
Member
 
Registered: Oct 2004
Posts: 33

Original Poster
Rep: Reputation: 15
I started esound (got no beeps though) and installed XMMS. I chose esound as output for both XMMS and BMP, but XMMS complains that the soundcard is blocked. Same problem the other way around aswell.
 
Old 10-08-2004, 11:04 AM   #9
christhom
Member
 
Registered: Sep 2004
Distribution: Debian sarge/sid
Posts: 41

Rep: Reputation: 15
probably because something is trying to send stuff onto the sound card. first indication is that there's no beeps (there should be if it's accessing the soundcard correctly). close all the apps that might access the card, and restart esd. maybe even set up esd to start at boot time and restart...
 
Old 10-08-2004, 11:14 AM   #10
Icetec
Member
 
Registered: Oct 2004
Posts: 33

Original Poster
Rep: Reputation: 15
root@david:/home/david# esd &
[1] 7552
esd: Esound sound daemon already running or stale UNIX socket
/tmp/.esd/socket
This socket already exists indicating esd is already running.
Exiting...

I got this when I tried starting it as root, so I guess it is already started? Can it be that I have too many outputs running at the same time? (I can choose esound, oss, alsa and arts as outputs in XMMS).
 
Old 06-22-2005, 03:29 AM   #11
Kahless
Member
 
Registered: Jul 2003
Location: Pennsylvainia
Distribution: Slackware / Debian / *Ubuntu / Opensuse / Solaris uname: Brian Cooney
Posts: 503

Rep: Reputation: 30
I have the same problem, and the same distro, and its solved

just choose esound in xmms and in all your other sound programs (gaim, xine, ect) and it should all work fine
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ALSA sound only working with one application at a time squat001 Linux - Software 5 05-12-2013 01:58 AM
cannot play sound from different sources at the same time with ALSA mrosati Linux - Software 2 09-21-2005 04:04 PM
ALSA sound: One output at a time :( Erik Plaggenmar Linux - Software 4 10-09-2004 04:12 AM
ALSA sound on more than one app at a time ElPuello Linux - Hardware 4 09-06-2004 05:25 AM
ALSA Playing one sound at a time on nForce2 macdonalder Linux - Hardware 4 07-24-2004 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration