13
0

Remove Mixbus send special case

Mixbus v6 uses AutomationType BusSendLevel like other Sends,
however with different min/max range compared to default Ardour
Aux sends. Control surfaces should use interface/internal API.
This commit is contained in:
Robin Gareus 2020-03-07 02:31:58 +01:00
parent 9c97724fc9
commit 1196eed89d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 0 additions and 16 deletions

View File

@ -5137,15 +5137,11 @@ OSC::route_set_send_gain_dB (int ssid, int id, float val, lo_message msg)
if (id > 0) { if (id > 0) {
--id; --id;
} }
#ifdef MIXBUS
abs = val;
#else
if (val < -192) { if (val < -192) {
abs = 0; abs = 0;
} else { } else {
abs = dB_to_coefficient (val); abs = dB_to_coefficient (val);
} }
#endif
if (s->send_level_controllable (id)) { if (s->send_level_controllable (id)) {
s->send_level_controllable (id)->set_value (abs, sur->usegroup); s->send_level_controllable (id)->set_value (abs, sur->usegroup);
return 0; return 0;
@ -5193,15 +5189,11 @@ OSC::sel_sendgain (int id, float val, lo_message msg)
if (id > 0) { if (id > 0) {
send_id = id - 1; send_id = id - 1;
} }
#ifdef MIXBUS
abs = val;
#else
if (val < -192) { if (val < -192) {
abs = 0; abs = 0;
} else { } else {
abs = dB_to_coefficient (val); abs = dB_to_coefficient (val);
} }
#endif
if (sur->send_page_size) { if (sur->send_page_size) {
send_id = send_id + ((sur->send_page - 1) * sur->send_page_size); send_id = send_id + ((sur->send_page - 1) * sur->send_page_size);
} }

View File

@ -938,19 +938,11 @@ OSCSelectObserver::send_gain (uint32_t id, boost::shared_ptr<PBD::Controllable>
string path; string path;
float value = 0.0; float value = 0.0;
float db; float db;
#ifdef MIXBUS
if (controllable) {
db = raw_value;
} else {
db = -193;
}
#else
if (raw_value < 1e-15) { if (raw_value < 1e-15) {
db = -193; db = -193;
} else { } else {
db = accurate_coefficient_to_dB (raw_value); db = accurate_coefficient_to_dB (raw_value);
} }
#endif
if (gainmode) { if (gainmode) {
if (controllable) { if (controllable) {