On Tue, 24 Feb 2004, Jaroslav Kysela wrote:

> > > pcm.dmixer12 {
> > >      type dmix
> > >      ipc_key 1024
> > >      slave {
> > >         pcm "hw:0,0"
> > >         period_time 0
> > >         period_size 1024
> > >         buffer_size 6553
> > >         rate 44100                # set to your source rate
> > >     }
> > >     bindings.0 0
> > >     bindings.1 1
> > > }
> > > 
> > > pcm.channel12 {
> > >     type plug
> > >     slave.pcm "dmixer12"
> > > }
> > > 
> > Just one more question -- with the above file I can now play an MP3 to
> > channel12 and another one to channel34 just like I wanted to.
> > 
> > Now I have just one more thing to ask, and I hope this isn't asking too
> > much.  I want to be able to send one audio source (festival speech
> > engine) to all outputs (i.e. channel12, channel34, channel56, and
> > channel78) at the same time as MP3s may be playing separately on each
> > channel...
>
> You may try to create this device:
> 
> pcm.dmixerALL {
>     type dmix
>     ipc_key 1024
>     slave {
>         pcm "hw:0,0"
>         period_time 0
>         period_size 1024
>         buffer_size 6553
>         rate 44100
>     }
>     bindings.0 0
>     bindings.1 1
>     bindings.2 2
>     bindings.3 3
>     bindings.4 4
>     bindings.5 5
> }
> 
> pcm.channelALL {
>     type plug
>     slave.pcm "dmixerALL"
>     ttable.0.0 1
>     ttable.1.1 1
>     ttable.0.2 1
>     ttable.1.3 1
>     ttable.0.4 1
>     ttable.1.5 1
> }

It kind of works... I can play two MP3s at the same time to 'channel12',
and I can play one MP3 to 'channelALL' and hear it on all output
channels.  But, if I play one MP3 on 'channel12' and another on
'channelALL' it sounds horrendous (i.e. popping and screeching).

It is not super-important that this works... I can work around it in my
software.  I want to overlay speech on top of MP3 but I can just have
the speech engine create a wav file and then play that to each of the
four output channels separately.

-- 
Kirk Bauer <[EMAIL PROTECTED]>
http://linux.kaybee.org | www.autorpm.org | www.logwatch.org



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to