13
0

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:
Robin Gareus 2024-07-10 15:17:51 +02:00
parent 249442fe99
commit a54a6c40a4
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 0 additions and 9 deletions

View File

@ -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;

View File

@ -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;