From a54a6c40a45393292ccdea87d3f833cd2c94edb1 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 10 Jul 2024 15:17:51 +0200 Subject: [PATCH] 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) --- session_utils/common.cc | 6 ------ session_utils/new_session.cc | 3 --- 2 files changed, 9 deletions(-) diff --git a/session_utils/common.cc b/session_utils/common.cc index 6a0052ad13..f9eb02cec5 100644 --- a/session_utils/common.cc +++ b/session_utils/common.cc @@ -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; diff --git a/session_utils/new_session.cc b/session_utils/new_session.cc index 83f0c4669f..d5c058f32e 100644 --- a/session_utils/new_session.cc +++ b/session_utils/new_session.cc @@ -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;