Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Applications playing sound at the same time?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Cubano
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2005
Posts: 79
Location: LONDON, UK

PostPosted: Wed Oct 05, 2005 9:40 pm    Post subject: Applications playing sound at the same time? Reply with quote

Is it possible to have two applications for example mplayer and amarok playing (with sound) at the same time?

On my system if I am playing a tune in amarok and I open a film say in mplayer I will get an error saying that sound cannot be initialised:

Could not initialize audio device -> no sound

More over if I then close amarok down and try and restart mplayer there is still no audio for a while as though amarok has still got a lock onn the device.

Is there any thing I can do here?
Back to top
View user's profile Send private message
Cubano
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2005
Posts: 79
Location: LONDON, UK

PostPosted: Wed Oct 05, 2005 9:50 pm    Post subject: Reply with quote

Oh I should mention I am using alsa sound which is compiled in to 2.6.11-gentoo-r6 kernel
with alsa-lib-1.0.9
Back to top
View user's profile Send private message
zephid
n00b
n00b


Joined: 07 Sep 2003
Posts: 39
Location: Denmark

PostPosted: Sat Oct 08, 2005 11:29 pm    Post subject: Reply with quote

I am interrested in an answer too, got the same problem. :)
Back to top
View user's profile Send private message
dlx
n00b
n00b


Joined: 06 Aug 2003
Posts: 8
Location: Erlangen in Germany

PostPosted: Sun Oct 09, 2005 12:09 pm    Post subject: It's possible Reply with quote

Hi,

that is usually possible. If you're lucky just prepending the programs you want to play sound with, with "aoss" on the command-line will do:

Example:

$ aoss mpg123 *mp3

aoss is a simple shell-script that just sets some environment variables.

If you're not so lucky, you might need a /etc/asound.conf (global) or a ~/.asoundrc file. Maybe http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php?module=Generic or http://gentoo-wiki.com/HOWTO_ALSA_sound_mixer_aka_dmix is useful to you. "dmix" is the keyword you might want to enter into google. Dmix is a part of alsa that can mix the output of several applications and send the combined stream to the soundcard.

I think the aoss-stuff is only necessary for programs that use the old oss-libs instead of alsa. I'm not 100%ly sure, though.

I could only get the aoss solution to work for programs that use the same ouput-sample-frequency. For example I can't make xkoules play sound, while listening to mp3s. Probably dmix isn't smart enough to do that, or maybe I just overlooked something.[/b]

Bye Paul
Back to top
View user's profile Send private message
joacim
n00b
n00b


Joined: 16 Sep 2005
Posts: 5

PostPosted: Sun Oct 09, 2005 6:38 pm    Post subject: Reply with quote

i had the same problem..

but now it works great, I can play music with bmp and play ppracer at the same rime (with sound in both) ..

i'm using kernel 2.6.13 with snd-intel8x0 compiled inside the kernel, i dont know if it work's with the drivers compiled as modules..
Back to top
View user's profile Send private message
Cubano
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2005
Posts: 79
Location: LONDON, UK

PostPosted: Mon Oct 10, 2005 9:51 am    Post subject: Reply with quote

Good to hear its working for you Joacim....

Is this working as per method mentioned by dlx?

Are you using the beforementioned aoss

could you please show what is in your

/etc/asound.conf (global) or a ~/.asoundrc files?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum