mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
some new lua-bindings and session-lua (creating sessions)
This commit is contained in:
parent
f02db9b04e
commit
f80c0faa24
2 changed files with 12 additions and 1 deletions
|
|
@ -188,7 +188,15 @@ static Session * _create_session (string dir, string state, uint32_t rate)
|
|||
return 0;
|
||||
}
|
||||
|
||||
Session* session = new Session (*engine, dir, state);
|
||||
// TODO add option/bindings for this
|
||||
BusProfile bus_profile;
|
||||
bus_profile.master_out_channels = 2;
|
||||
bus_profile.input_ac = AutoConnectPhysical;
|
||||
bus_profile.output_ac = AutoConnectMaster;
|
||||
bus_profile.requested_physical_in = 0; // use all available
|
||||
bus_profile.requested_physical_out = 0; // use all available
|
||||
|
||||
Session* session = new Session (*engine, dir, state, &bus_profile);
|
||||
return session;
|
||||
}
|
||||
|
||||
|
|
@ -385,6 +393,7 @@ int main (int argc, char **argv)
|
|||
break;
|
||||
}
|
||||
if (strlen (line) == 0) {
|
||||
free (line);
|
||||
continue;
|
||||
}
|
||||
if (!lua->do_command (line)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue