Re: [ecasound] Stereo recording with Delta1010LT/ice1712

From: Kai Vehmanen <kvehmanen@email-addr-hidden>
Date: Wed Aug 31 2005 - 23:56:47 EEST

Hello,

On Thu, 25 Aug 2005, Maik Musall wrote:

> I have the M-Audio Delta1010LT card with 10 I/O channels and ice1712
> chipset. I want to record 5 independent stereo sources simultaneously.
> Before, I had three consumer audio cards, and recording worked with:
>
> ecasound -i:alsahw,0,0 -q -o stdout | ...
> ecasound -i:alsahw,1,0 -q -o stdout | ...
> ecasound -i:alsahw,2,0 -q -o stdout | ...
>
> Now I'm puzzled how to combine the 10 channels into 5 stereo signals and
> accessing them with ecasound. I've been trying hard, but most of the
> corresponding alsa documentation seems to be focused on playback.

there's basicly three ways to do it: 1) with asoundrc, 2) using JACK, and
3) ecasound's channel-routing. I think for your use (recording independent
stereo pairs), approach (1) is the easiest.

Some old posts about this topic:
  - http://www.eca.cx/ecasound-list/2003/03/0016.html
  - http://www.eca.cx/ecasound-list/2003/05/0018.html

Below is a clip from my ~/.asoundrc (Delta44). To use these devices, just
issue...

sh> ecasound -i alsa,delta_in12 -o foo.wav
sh> ecasound -i alsa,delta_in34 -o foo.wav

... and so on.

--cut:~/.asoundrc--
# shared access to input channels
pcm.delta_recshared {
         type dsnoop
         ipc_key 5978293 # must be unique for all dmix plugins!!!!
         ipc_key_add_uid yes
         slave {
                 pcm "hw:0,0"
                 format S32_LE
                 channels 12
                 period_size 1024
                 buffer_size 4096
                 rate 44100
                 periods 0
                 period_time 0
         }
         bindings {
                 0 0
                 1 1
                 2 2
                 3 3
         }
}

# capture from stereo pair 1-2
pcm.delta_in12 {
         type plug
         slave {
                 pcm "delta_recshared"
                 channels 4
         }
         ttable.0.0 1
             ttable.1.1 1
}

# capture from stereo pair 3-4
pcm.delta_in34 {
         type plug
         slave {
                 pcm "delta_recshared"
                 channels 4
         }
         ttable.0.2 1
             ttable.1.3 1
}
--cut--

--
  links, my public keys, etc at http://eca.cx/kv
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Thu Sep 1 00:15:09 2005

This archive was generated by hypermail 2.1.8 : Thu Sep 01 2005 - 00:15:09 EEST