Skip to contentSkip to conversation

routing audio stream to multiple devices

DISCUSSION Baek Chang 2 participants 5 messages Jun 26, 2009

lore
Share & tools
lore

Baek Chang

author
#0 lore raw

I was wondering if it was possible to route a single audio stream to multiple alsa devices or plugins?

For example, I am playing a song and want it to stream to both my sound card at hw:0 and a bluetooth device, an alsa plugin. Is this possible? It seems that configuring asound.conf only lets you route streams serially to a single device at a time. Any info would be greatly appreciated.

Thanks in advance
Baek

Signature · 3 lines
Baek Chang
[email protected]
407-267-6701
#1 lore raw

You can achieve this with pulseaudio, and maybe with alsa's dmix.

2009/6/25 Baek Chang <[email protected]>:

Quoted 20 lines

I was wondering if it was possible to route a single audio stream to multiple alsa devices or plugins?

For example, I am playing a song and want it to stream to both my sound card at hw:0 and a bluetooth device, an alsa plugin.  Is this possible?  It seems that configuring asound.conf only lets you route streams serially to a single device at a time.  Any info would be greatly appreciated.

Thanks in advance
Baek

--
Baek Chang
[email protected]
407-267-6701
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

author
#2 lore raw

I am trying to do this with dmix, but I can't seem to find a clear cut solution to this? I was under the impression that editing my asound.conf could acheive this? Basically, it seems that you have to make a stream a slave to two different devices. Is this possible?

Thanks
Baek

Quoted 27 lines · Emilio López

You can achieve this with pulseaudio, and maybe with alsa's dmix.

2009/6/25 Baek Chang <[email protected]>:

Quoted 4 lines

I was wondering if it was possible to route a single audio stream to multiple alsa devices or plugins?

For example, I am playing a song and want it to stream to both my sound

card

Quoted 1 line

at hw:0 and a bluetooth device, an alsa plugin. Is this possible? It

seems

Quoted 15 lines

that configuring asound.conf only lets you route streams serially to a single device at a time. Any info would be greatly appreciated.

Thanks in advance
Baek

--
Baek Chang
[email protected]
407-267-6701
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

Signature · 3 lines
Baek Chang
[email protected]
407-267-6701
#3 lore raw

I don't really know how to do this on dmix, nor I do know much about alsa or dmix. But I'm quite certain this is achieveable with pulseaudio; I have done it once using the GUI they provide.

Might be of help if you still want to use dmix:
http://alsa.opensrc.org/index.php/Dmix

2009/6/25 Baek Chang <[email protected]>:

Quoted 45 lines

I am trying to do this with dmix, but I can't seem to find a clear cut solution to this?  I was under the impression that editing my asound.conf could acheive this?  Basically, it seems that you have to make a stream a slave to two different devices.  Is this possible?

Thanks
Baek

Quoted 27 lines · Emilio López

You can achieve this with pulseaudio, and maybe with alsa's dmix.

2009/6/25 Baek Chang <[email protected]>:

Quoted 22 lines

I was wondering if it was possible to route a single audio stream to multiple alsa devices or plugins?

For example, I am playing a song and want it to stream to both my sound card
at hw:0 and a bluetooth device, an alsa plugin.  Is this possible?  It seems
that configuring asound.conf only lets you route streams serially to a single device at a time.  Any info would be greatly appreciated.

Thanks in advance
Baek

--
Baek Chang
[email protected]
407-267-6701
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

--
Baek Chang
[email protected]
407-267-6701

author
#4 lore raw

I'm trying to acheive this with dmix and alsa. I know that pulseaudio can do this, but we are getting rid of pulseaudio on our embedded system and I am trying to find a solution with alsa. I'll take a look at the dmix docs, thanks!

Baek

Quoted 56 lines · Emilio López

I don't really know how to do this on dmix, nor I do know much about alsa or dmix. But I'm quite certain this is achieveable with pulseaudio; I have done it once using the GUI they provide.

Might be of help if you still want to use dmix:
http://alsa.opensrc.org/index.php/Dmix

2009/6/25 Baek Chang <[email protected]>:

Quoted 5 lines

I am trying to do this with dmix, but I can't seem to find a clear cut solution to this? I was under the impression that editing my asound.conf could acheive this? Basically, it seems that you have to make a stream a slave to two different devices. Is this possible?

Quoted 13 lines

Thanks
Baek

Quoted 8 lines · Emilio López

You can achieve this with pulseaudio, and maybe with alsa's dmix.

2009/6/25 Baek Chang <[email protected]>:

Quoted 4 lines

I was wondering if it was possible to route a single audio stream to multiple alsa devices or plugins?

For example, I am playing a song and want it to stream to both my

sound

Quoted 27 lines
Quoted 9 lines
Quoted 9 lines

card
at hw:0 and a bluetooth device, an alsa plugin. Is this possible? It seems
that configuring asound.conf only lets you route streams serially to a single device at a time. Any info would be greatly appreciated.

Thanks in advance
Baek

Quoted 10 lines
Quoted 9 lines

--
Baek Chang
[email protected]
407-267-6701
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

--
Baek Chang
[email protected]
407-267-6701

Signature · 3 lines
Baek Chang
[email protected]
407-267-6701