Prepare for API removal
`set_input/output_channels` API to limit a device to the first `N` chnanels is somewhat ill conveived and was never really used or useful. LiveTrax has a bitset of exposed channels, which makes a lot more sense (e.g. hide ADAT or S/Pdif, or some specific channels)
This commit is contained in:
parent
249442fe99
commit
a54a6c40a4
@ -141,9 +141,6 @@ static Session * _load_session (string dir, string state)
|
||||
::exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
engine->set_input_channels (256);
|
||||
engine->set_output_channels (256);
|
||||
|
||||
float sr;
|
||||
SampleFormat sf;
|
||||
std::string v;
|
||||
@ -210,9 +207,6 @@ SessionUtils::create_session (string dir, string state, float sample_rate)
|
||||
::exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
engine->set_input_channels (256);
|
||||
engine->set_output_channels (256);
|
||||
|
||||
if (engine->set_sample_rate (sample_rate)) {
|
||||
std::cerr << "Cannot set session's samplerate.\n";
|
||||
return 0;
|
||||
|
@ -109,9 +109,6 @@ create_new_session (string const& dir, string const& state, float sample_rate, i
|
||||
::exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
engine->set_input_channels (256);
|
||||
engine->set_output_channels (256);
|
||||
|
||||
if (engine->set_sample_rate (sample_rate)) {
|
||||
cerr << "Cannot set session's samplerate.\n";
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user