On Tue, 24 Feb 2004, Kirk Bauer wrote:

> 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.dmixer34 {
> >      type dmix
> >      ipc_key 1024  # must be same as for dmixer12
> >      slave {           # all parameters in this section must be same as for 
> > dmixer12
> >         pcm "hw:0,0"
> >         period_time 0
> >         period_size 1024
> >         buffer_size 6553
> >         rate 44100
> >     }
> >     bindings.0 2
> >     bindings.1 3
> > }
> > 
> > pcm.channel12 {
> >     type plug
> >     slave.pcm "dmixer12"
> > }
> > 
> > pcm.channel34 {
> >     type plug
> >     slave.pcm "dmixer34"
> > }
> 
> 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...
> 
> I hope this doesn't put me back into my original high-CPU demand
> situation.

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
}

But we need to do some optimization in alsa-lib. It might be more CPU 
intensive. Note that dmixerALL parameters must be equal to channel12 
(except for bindings).

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs


-------------------------------------------------------
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