Picon

eca-control-interface and ecasound console

Hi all,
    I`m writing a c++ player based on ecasound. I`m using jack output 
but it paused over 0.5 s when I add a chain operator. I tried the same 
commad on a ecasound console and work fine! Someone now wath could be 
happen? I paste my code and ecasound console output. Regards:
    Pedro

#include <eca-control-interface.h>
#include <iostream>

int main( int argc, char ** argv )
{

    ECA_CONTROL_INTERFACE ecaplayer;
    ecaplayer.command("cs-add play_chainsetup");
    ecaplayer.command("c-add 1st_chain");

    ecaplayer.command("cs-set-param -G:jack,ecasound,notransport");
    ecaplayer.command("cs-set-param -B:nonrt");

    ecaplayer.command("ai-add song.mp3");
    ecaplayer.command("ao-add jack");

    ecaplayer.command("cs-connect");

    std::cout << "start" << std::endl;
    ecaplayer.command("start");

    sleep(3);

(Continue reading)

Bery Rinaldo | 1 Dec 19:02 2005
Picon

Re: capture from two delta 1010LTs at once


Kai Vehmanen wrote:
> On Thu, 17 Nov 2005, Bery Rinaldo wrote:
> 
>> ecasound -t:10 \
>> -a:1,2,3,4,5,6,7,8 -f:16,8,44100 -i:alsa,analog8_1 \
>> -a:A,B,C,D,E,F,G,H -f:16,8,44100 -i:alsa,analog8_2 \
> 
> [...]
> 
>> As for the syncing of the two cards, it seems that S/PDIF is the way 
>> to go for the Delta 1010LT.  I used the envy24control GUI to select 
>> S/PDIF In for the Master Clock for card 2 and set the "Locked" Rate 
>> State and connected the S/PDIF output from card 1 to the S/PDIF input 
>> on card 2.  I ran the above capture command with the same analog 
>> signal (via a Y-cable) going to one input on each card.  I then 
>> compared the signals in Audacity -- they were _very_ close -- I 
>> believe that the differences may be due to ADC differences between 
>> channels.  I tried the same thing with two channels on the same card
> 
> 
> The clock-sync is important to avoid clock-drift. This will avoid buffer
> overruns that would otherwise happen sooner or later if the clocks were 
> not synced.
> 
> But it's important to note that clock-sync won't guarantee that the 
> devices are started at the same precise instant. As ecasound has to 
> start the devices separately, the device started first will be a few 
> samples ahead. ALSA provides mechanisms for triggering multiple devices 
> at once, but you need to use the ALSA "multi" (and possibly others, I 
(Continue reading)

Avuton Olrich | 3 Dec 10:50 2005
Picon

Stops recording (though it doesn't warn of such a thing)

Hello,

I would like to record for 24 hour periods to raw format, though for
some reason any time I record >202 minutes it stops recording and all
I get is dead air. Since this has happened as a workaround I have been
recording for 3 hour periods. Am I missing something here or is this a
bug?

Thanks,
avuton

(yes I do have --with-largefile, thx)
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Avuton Olrich | 3 Dec 12:35 2005
Picon

Re: Stops recording (though it doesn't warn of such a thing)

On 12/3/05, Avuton Olrich <avuton <at> gmail.com> wrote:
> Hello,
>
> I would like to record for 24 hour periods to raw format, though for
> some reason any time I record >202 minutes it stops recording and all
> I get is dead air. Since this has happened as a workaround I have been
> recording for 3 hour periods. Am I missing something here or is this a
> bug?
>
> Thanks,
> avuton
>
> (yes I do have --with-largefile, thx)

Please escuse this post, it's the player that's the problem :(

thanks,
avuton
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list
(Continue reading)

Picon

Re: eca-control-interface and ecasound console

Hi all (again),
    I continue testing... I made a chainsetup file, I load it on an 
ecasound console and on an ECA-CONTROL-INTERFACE. Both worked fine but 
if a add a chain operator on ECA-CONTROL-INTERFACE I contine with a 
sound break. I don't know if it's because they are different, I have a 
problem in my configuration or if it could be a bug in 
ECA-CONTROL-INTERFACE... Any ideas? I attach the chainsetup file, my 
code and the ecasound console mesages... Thanks all,
    Pedro
# ecasound chainsetup file

# general 
-b:1024 -r:-1 -z:intbuf -z:nodb -n:command-line-setup -X -z:noxruns -z:nopsr -z:mixmode,avg

# audio inputs 
-a:default -f:s16_le,2,44100  -i:song.mp3,128000

# audio outputs 
-a:default -f:f32_le,2,44100  -o:jack

$ ecasound -c
********************************************************************************
*        ecasound v2.4.4-cvs (C) 1997-2005 Kai Vehmanen and others
********************************************************************************
- [ Session created ] ----------------------------------------------------------
- [ Chainsetup created (cmdline) ] ---------------------------------------------
(Continue reading)

Kai Vehmanen | 17 Dec 11:40 2005

Re: Can I cut a wav file at file size?

Hello,

sorry for the late reply.

On Mon, 28 Nov 2005, jj <at> sann.ne.jp wrote:

> $ mpg123 -s original.mp3 > original.raw
> $ split -b 10m original.raw split_original.raw
> $ mv split_original.rawaa split_original.raw
> $ ecaconvert .wav split_original.raw
[...]
> OK?

Yep, that'll work. One thing to watch out for is the audio format. 
Raw-files do not contain the necessary header that contain information
about the format used, so ecaconvert has to assume the params (16bit, 
stereo, 44100). If this is not the case, you'll have to convert with:

ecasound -f:bits,channels,srate -i split_original.raw -o split_original.wav

See ecasound(1) for more info about -f.

--
  links, my public keys, etc at http://eca.cx/kv

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
(Continue reading)

Kai Vehmanen | 17 Dec 11:44 2005

Re: eca-control-interface and ecasound console

Hi,

On Fri, 9 Dec 2005, Pedro Antonio Fructuoso Merino wrote:

>   I continue testing... I made a chainsetup file, I load it on an ecasound 
> console and on an ECA-CONTROL-INTERFACE. Both worked fine but if a add a 
> chain operator on ECA-CONTROL-INTERFACE I contine with a sound break. I don't 
> know if it's because they are different, I have a problem in my configuration 
> or if it could be a bug in ECA-CONTROL-INTERFACE... Any ideas? I attach the 
> chainsetup file, my code and the ecasound console mesages... Thanks all,

ecasound unfortunately does not support adding/removing chain operators on 
the fly. Ecasound will allow you to perform the add/remote, but there's 
always the possibility of an audible break.

The list of commands that are real-time safe (i.e. do not cause audible 
breaks) are listed in ecasound(1) man page, in the 'Real-time commands'
section.

--
  links, my public keys, etc at http://eca.cx/kv

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
(Continue reading)

Brad Fuller | 19 Dec 19:18 2005

extract, mix and save questions

I couldn't find a way to do this in ecasound, but maybe there's a way to 
do it. Here's what I want to do:

Find the exact length of a audio file in ms. I think ecalength can do 
this, I know it's not sample accurate, but I just need down to the 
around 1ms. Maybe there's another option other than ecalength.  I´d like 
to have it sample accurate, or at least to the nearest zero crossings.

Then, I want to extract a section of another file: at a specific 
location in ms and at a length of the file above. I see that sox may be 
able to do this using the 'trim" feature.

Then, mix that extracted segment with another file and save the result 
to a new file. 

How can this be done? Any ideas?

thanks,

brad

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list
(Continue reading)

Jeremy Hall | 19 Dec 19:39 2005

Re: extract, mix and save questions

Hi Brad,

I think you could do this with ecasound

When I want to know how long a file is, I have a variety of ways to do it:

1: if the file is a .wav file strip off the first 44 bytes (NOTE there may 
be length information in the header but often times there isn't, so best 
to calculate it manually)

Let us assume your file is 16-bit samples and 2 channels--you can have 
more channels)

(len - 44) / 4

This is assuming 8 bits to a byte, two channels,   two bytes (16-bit) now 
you have the number of "frames"

Now divide that by your srate--this will tell you (hopefully with 
milisecond accuracy) how many seconds the file is.  Alternatively, load 
your file into ecasound, connect the chain and issue the fs command from 
interactive mode--this will tell you with ms accuracy as well.

Now for your second task, locate the second file and do:

ecasound -i foo.raw -y:1800 -t:30 -o foo2.raw

This is the second file, -y means offset into the file, -t says how long 
it should run.

(Continue reading)

Brad Fuller | 19 Dec 21:10 2005

Re: extract, mix and save questions

Jeremy Hall wrote:

>Hi Brad,
>
>I think you could do this with ecasound
>
>When I want to know how long a file is, I have a variety of ways to do it:
>
>1: if the file is a .wav file strip off the first 44 bytes (NOTE there may 
>be length information in the header but often times there isn't, so best 
>to calculate it manually)
>
>Let us assume your file is 16-bit samples and 2 channels--you can have 
>more channels)
>
>(len - 44) / 4
>
>This is assuming 8 bits to a byte, two channels,   two bytes (16-bit) now 
>you have the number of "frames"
>
>Now divide that by your srate--this will tell you (hopefully with 
>milisecond accuracy) how many seconds the file is.  Alternatively, load 
>your file into ecasound, connect the chain and issue the fs command from 
>interactive mode--this will tell you with ms accuracy as well.
>
>Now for your second task, locate the second file and do:
>
>ecasound -i foo.raw -y:1800 -t:30 -o foo2.raw
>
>This is the second file, -y means offset into the file, -t says how long 
(Continue reading)


Gmane