Re: [ecasound] Multitrack Recording via Control Interface

From: Markus Luttenberger <m.luttenberger@email-addr-hidden>
Date: Thu Aug 13 2009 - 15:14:29 EEST

Hey!

I've fixed the code. Apparently the chain setup wasn't that wrong, it
was more a fault of my bad C++ skill...

>>>>>>> SNIP >>>>>
>> ...
>> int sources = 3; // user input
>> ...
>>
>> //--------------------------------------------------------------------------
>> // construct ECA control interface and configure it for recording
>> ECA_CONTROL_INTERFACE e;
>> const string current_time(getCurrentTime());
>>
>> e.command("cs-add recording_chainsetup");
>>
>> for (int count = 1; count <= sources; count++)
>> {
>> const char source_no = '0' + count;
>> string file_name = "./" + current_time + "-s" + source_no + ".wav";
>> // the command chain
>> e.command("c-add chain" + source_no);
>> // the HW input source
>> e.command("ai-add alsahw," + source_no + ',' + '0');

The last two lines could never have worked in C++! This is no string
concatenation, this is pointer movement :/ ...

greetings..
..Markus

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ecasound-list mailing list
Ecasound-list@email-addr-hidden
https://lists.sourceforge.net/lists/listinfo/ecasound-list
Received on Thu Aug 13 16:15:03 2009

This archive was generated by hypermail 2.1.8 : Thu Aug 13 2009 - 16:15:03 EEST