Re: Proper syntax of "copy" plugin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Clemens,

If we get back to your great example:

pcm.Duplicate {
     type plug
     slave.pcm {
         type multi
         slaves {
             a { pcm "hw:0,0" channels 2 }
             b { pcm "hw:1,0" channels 2 }
         }
         bindings [
             { slave a channel 0 }
             { slave a channel 1 }
             { slave b channel 0 }
             { slave b channel 1 }
         ]
     }
     ttable [
         [ 1 0 1 0 ]
         [ 0 1 0 1 ]
     ]
}

Lets say that hw:0 is an integrated sound card, and hw:1 is an
usb-audio device. This specific example will require both of these
devices to be available if I want to play through Duplicate. But if I
remove the usb-audio device, I'll be no longer able to use the
Duplicate.

Is it possible to make the Duplicate device a little bit more
"fool-proof" - e.g. to work with 2 devices when available, and to
gracefully fallback to 1 device playback when the other is missing?

Thanks in advance for your input.

Regards,
Nikolay

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user




[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux