Jim Smith | 5 Apr 2004 15:01

Real-time input/output

I'm a fairly new user of ecasound.  I have browsed through the 
archives, and have not seen this addressed.  I've installed ecasound 
on my FreeBSD 4.9 machine [no Jack support], and I besides all the 
fun I'm having recording all my old Vinyl records to CD, I would like 

to experiment using it for real-time audio manipulation.  Essentially 

I would like to use it as a glorified Audio Filter for ham radio.

I cannot for the life of me figure out how to get ecasound to use the 

input of the soundcard as its input, and the output of the sound card 

as its output.  I've tried various combinations of /dev/dspX [where X 

is a number] to no avail.

I realize this might be easier if I used ecamegapedal, but I like the 

command line interface much better than a gui.

Any suggestions?  I have increased the virtual channels on the pcm 
device to 4, but that doesn't seem to help [hw.snd.pcm0.vchans=4].

--
Jim Smith

--
To unsubscribe send message 'unsubscribe' in the body of the
message to <ecasound-list-request <at> wakkanet.fi>.
(Continue reading)

janne | 6 Apr 2004 13:12

Re: Real-time input/output

Lainaus Jim Smith <jmsmith <at> interconchemical.com>:

> I'm a fairly new user of ecasound.  I have browsed through the 
> archives, and have not seen this addressed.  I've installed ecasound 
> on my FreeBSD 4.9 machine [no Jack support], and I besides all the 
> fun I'm having recording all my old Vinyl records to CD, I would like 
> 
> to experiment using it for real-time audio manipulation.  Essentially 
> 
> I would like to use it as a glorified Audio Filter for ham radio.
> 
> I cannot for the life of me figure out how to get ecasound to use the 
> 
> input of the soundcard as its input, and the output of the sound card 
> 
> as its output.  I've tried various combinations of /dev/dspX [where X 
> 
> is a number] to no avail.

is there any error messages?  it is kind of hard to know what fails without
them.

> I realize this might be easier if I used ecamegapedal, but I like the 
> 
> command line interface much better than a gui.
>
> Any suggestions?  I have increased the virtual channels on the pcm 
> device to 4, but that doesn't seem to help [hw.snd.pcm0.vchans=4].

does freebsd have alsa?
(Continue reading)

Jim Smith | 7 Apr 2004 21:33

Re: Real-time input/output


> Lainaus Jim Smith <jmsmith <at> interconchemical.com>:

> 
> 
> is there any error messages?  it is kind of hard to know what fails without
> them.
> 
> 
Yes--"unable to open OSS-device to O_RDONLY (6)".
> 
> does freebsd have alsa?
> 
> 
> janne

FreeBSD has a port of alsaplayer, but not just alsa.

--
Jim Smith

--
To unsubscribe send message 'unsubscribe' in the body of the
message to <ecasound-list-request <at> wakkanet.fi>.

H. T. Hind | 7 Apr 2004 23:43
Picon

JACK registering

Hello, 

I can start ecasound on the commandline like this
ecasound -a:1 -i jack  -G:jack,eca1,notransport  and 
connect the Jack Ports to eca1:in_1 and eca1:in_2 

How do I pass the global option if I'm using ecasound 
via the Python interface ? 

I have the following script - 
e = ECA_CONTROL_INTERFACE(debuglevel)
result = 0
channel = int(sys.argv[1])

e.command("cs-add play_chainsetup")
e.command("c-add 1st_chain")
e.command("ai-add jack")
e.command("ao-add alsahw,0,0")
e.command("cs-connect")
e.command("start")

connect_to_jack('ecasound',channel,2)
connect_to_jack('ecasound',channel,1)
                ^^^^^^^^^^^

by default, ecasound registers with JACK as "ecasound". 
I would like to be able to pass in a parameter that 
is the name to use while registering. How can I do it ? 

Any help is much appreciated,
(Continue reading)

Julien Claassen | 8 Apr 2004 01:06
Hi everyone!
  I had some problems with .cer-files. As I understand it .cdr files just
contain raw audio-data in cd-quality (-f:S16_LE,2,44100). But I tried to play
them back with a simple program of mine (mainly just copied from Matthias
Nagorni's and Paul Davis' alsa-howtos). It didn't work. I took the original
.wav-files and converted them using sndfile-convert, this worked? Am I wrong
in my assumption or is something messed up?
  Kindest regards
        Julien

http://ltsb.sourceforge.net - the Linux TextBased Studio guide

---------------------------------------------------------
SBS C-LAB
Fuerstenallee 11
33102 Paderborn

Phone: (+49) 5251 60 6060
Fax: (+49) 5251 60 6065

www.c-lab.de/~wegge

--
To unsubscribe send message 'unsubscribe' in the body of the
message to <ecasound-list-request <at> wakkanet.fi>.

Kai Vehmanen | 8 Apr 2004 01:29
Picon
Picon

Re: Real-time input/output

On Mon, 5 Apr 2004, Jim Smith wrote:

> I'm a fairly new user of ecasound.  I have browsed through the 
> archives, and have not seen this addressed.  I've installed ecasound 
> on my FreeBSD 4.9 machine [no Jack support], and I besides all the 

Btw, in case you are not aware, there is work underway to add
FreeBSD support to JACK. See the web archives of jackit-devel mailing 
list...:

  http://boudicca.tux.org/hypermail/jackit-devel/this-month/0050.html
  http://boudicca.tux.org/hypermail/jackit-devel/this-month/0060.html	

> I cannot for the life of me figure out how to get ecasound to use the 
> input of the soundcard as its input, and the output of the sound card 

The basic syntax is:

 ecasound -i /dev/dsp -o /dev/dsp 

... unfortunately the OSS API allows many ways for driver to implement 
full-duplex support. So sometimes you need:

 ecasound -i /dev/dsp0 -o /dev/dsp1

And then there are some drivers that only support full-duplex if the 
char device (say /dev/dsp) is opened in O_RDWR mode. Ecasound does support 
still style of full-duplex in OSS, and probably never will as it has been 
proven to be the wrong way to implement full-duplex.

(Continue reading)

Kai Vehmanen | 8 Apr 2004 01:32
Picon
Picon

Re: JACK registering

On Wed, 7 Apr 2004, H. T. Hind wrote:

> How do I pass the global option if I'm using ecasound 
> via the Python interface ? 

e.command("cs-option -G:jack,eca1,notransport")

See man ecasound-iam(1) for details.

> e.command("cs-add play_chainsetup")
> e.command("c-add 1st_chain")
> e.command("ai-add jack")
> e.command("ao-add alsahw,0,0")
> e.command("cs-connect")
> e.command("start")

So add the 'cs-option' call before 'cs-connect' and you are good to go.

---
 http://www.eca.cx
 Audio software for Linux!

--
To unsubscribe send message 'unsubscribe' in the body of the
message to <ecasound-list-request <at> wakkanet.fi>.

Kai Vehmanen | 8 Apr 2004 01:35
On Thu, 8 Apr 2004, Julien Claassen wrote:

>   I had some problems with .cer-files. As I understand it .cdr files just
> contain raw audio-data in cd-quality (-f:S16_LE,2,44100). But I tried to play

Actually not. Cdr-files, as Ecasound understands them, have the following
properties:

 - 16bit samples, 44100kHz, stereo
 - sample frame layout: (MSB-left, LSB-left, MSB-right, LSB-right)
 - files are padded sector size (2352 bytes)

... so it's close to -f:s16_be,2,44100, mutta in addition the files are 
always padded to sector size.

---
 http://www.eca.cx
 Audio software for Linux!

--
To unsubscribe send message 'unsubscribe' in the body of the
message to <ecasound-list-request <at> wakkanet.fi>.

Julien Claassen | 8 Apr 2004 19:03
Picon

occasional under/overruns with ecasound

Hi all!
  I still have occasional under/overruns with ecasound. And sometimes I get
small pops (which aren't counted). I use alsa 1.0.3 and a delta 1010lt card.
As input I use a simple alsa plug device (io1) with ttable mapping and as
output I use a plug device wrapping a dshare-device. Both devices are on the
same card. I have a 2.6.3 kernel with preemption built in. Also I use a lot of
real-time options, which I have to, because otherwise I get terrible latency.
That is irretating when playing live. Can any one give me a hint or another
idea of how to tune my setup.
  Btw. The cpu is ok and so are the disks. Usually the pops also happen when I
do:
  rteca -i alsa,io1 -o alsa,p1
  (rteca is a small script, which contains all the buffering and
realtime=priority options. the main buffer is set to 64, priority is high and
I run ecasound as root.
  Kindest regards
        Julien

http://ltsb.sourceforge.net - the Linux TextBased Studio guide

---------------------------------------------------------
SBS C-LAB
Fuerstenallee 11
33102 Paderborn

Phone: (+49) 5251 60 6060
Fax: (+49) 5251 60 6065

www.c-lab.de/~wegge

(Continue reading)

H. T. Hind | 9 Apr 2004 01:38
Picon

Re: JACK registering

On Thu, Apr 08, 2004 at 02:32:34AM +0300, Kai Vehmanen wrote:
> On Wed, 7 Apr 2004, H. T. Hind wrote:
> 
> > How do I pass the global option if I'm using ecasound 
> > via the Python interface ? 
> 
> e.command("cs-option -G:jack,eca1,notransport")
> 
> See man ecasound-iam(1) for details.
> So add the 'cs-option' call before 'cs-connect' and you are good to go.
> 

Thank you. 'cs-option' was it. 

--

-- 

--
To unsubscribe send message 'unsubscribe' in the body of the
message to <ecasound-list-request <at> wakkanet.fi>.


Gmane