Re: [ecasound] delta66, chains, and ecasound

From: Lance <lance@email-addr-hidden>
Date: Sun Mar 08 2009 - 18:50:56 EET

Not long winded at all! Perfect amount of info and got
jack+ICE1712+ecasound working with 2 mics

A couple of followup questions:

1) jack seems to be set root:root so that I have to use sudo jackd ...
to start jack and hence, I also have to run ecasound via sudo ecasound.
I would prefer to run these as a user instead of sudo. How do
I change jack configuration to run as user?

2 No idea what
jack_connect sound_producer sound_consumer means. I have seen something
to this in envy24 (Hardware settings, Professional vs Consumer, is it
the same thing?)

3) Since I will be using this configuration (or something similar)
whenever I run
ecasound and I am wonder if it is possible to configure all of this into the
.ecasoundrc file so that when I type:

ecasound -f:16,1,44100 -a:1 -i jack -o mic1.wav -a:2 -i jack -o mic2.wav -c

everything is ready to go. No need to type engine-launch, jack_connect
system:capture_1 ecasound:in_1 ...

Could it be as simple as?

jackd --timeout 4500 -R -d alsa -d hw:2 -r 44100 -z shaped -p 128
jack_connect system:capture_1 ecasound:in_1
jack_connect system:capture_2 ecasound:in_2
jack_connect system:playback_1 ecasound:out_1
jack_connect system:playback_2 ecasound:out_2

A summary for any future reference

To get Delta66+ecasound to work one can use

ecasound -i alsa,plughw:1 -o foobar.wav (record using delta66)

but one doesn't get a lot of control over two mics without additional
configuration to a .asoundrc file in one's home directory.

This requires three programs:

The approach we are using to get chain control with 2+ mics uses 4 programs

Julien Claassen wrote:
> Hello Lance!
> If you use ALSA, you don't want to use hw, you DEFINITELY WANT
> plughw. Plughw does some convenience conversions and detections(?) for
> you. Like sampling rate and the like.
> With jack use something like:
> jackd --timeout 4500 -R -d alsa -d hw:2 -r 44100 -z shaped -p 128
> If you like 48000 Hz samplingrate, jst say so, where 44100 is
> written now. This will do exactly what you want.
> Then you can use:
> tty# jack_lsp
> To see the ports (ins and outs). They have names in the format:
> client:port_name
> The client is the name of the program (system or alsa_pcm for the
> soundcard ports) and port_name is the name of a "jack" where you can
> plug in.
> Assume you've started ecasound:
> ecasound -f:16,1,44100 -a:1 -i jack -o mic1.wav -a:2 -i jack -o
> mic2.wav -c
> [copious output]
> ecasound ('h' for help)> engine-launch
> [change console, tty]
> tty# jack_lsp
> Now you should see:
> system:capture_1
> ...
> system:playback_1
> ...
> ecasound:in_1
> ecasound:in_2
> Now you want to connect your mics:
> tty# jack_connect system:capture_1 ecasound:in_1
> tty# jack_connect system:capture_2 ecasound:in_2
> Then press 't' in ecasound and press 's' when you want to stop. See
> the small help 'h' inside ecasound for some basic commands.
> The same goes for outputs. You can just connect them the same way.
> Always be sure to connect them like this:
> jack_connect sound_producer sound_consumer
> Ecasound still supports the object jack_alsa. So to play some sound
> to the first - who knows how many outputs you chose in -f - use:
> ecasound [options] -i input -o jack_alsa
> No need to connect anything, ecasound does it for you. There's also
> a new jack object. But I keep forgetting, I use nama, which is pretty
> good and helpful for doing good old fashioned multitrack recording and
> processing, mixing.
> Very long winded, for which I appologise, but hopefully helpful.
> Kindest regards
> Julien
> --------
> Music was my first love and it will be my last (John Miles)
> ======== FIND MY WEB-PROJECT AT: ========
> the Linux TextBased Studio guide
> ======= AND MY PERSONAL PAGES AT: =======

Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
Ecasound-list mailing list
Received on Sun Mar 8 20:15:01 2009

This archive was generated by hypermail 2.1.8 : Sun Mar 08 2009 - 20:15:01 EET