mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 21:56:30 +01:00
[Summary] Fixed issue with unidentifiable ports
[Details] This is a workaround applied as hotfix. As Sensei Valeriy said: "Don not use displayed data to identify entities". [git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 462193]
This commit is contained in:
parent
abb29ab332
commit
3fe5a59c80
1 changed files with 20 additions and 4 deletions
|
|
@ -629,13 +629,19 @@ TracksControlPanel::on_apply (WavesButton*)
|
|||
|
||||
void TracksControlPanel::on_capture_active_changed(DeviceConnectionControl* capture_control, bool active)
|
||||
{
|
||||
EngineStateController::instance()->set_physical_audio_input_state(capture_control->get_name(), active);
|
||||
// GZ FIXME: remove this ugly workaround with prefix
|
||||
std::string prefix("system:");
|
||||
std::string port_name(prefix + capture_control->get_name() );
|
||||
EngineStateController::instance()->set_physical_audio_input_state(port_name, active);
|
||||
}
|
||||
|
||||
|
||||
void TracksControlPanel::on_playback_active_changed(DeviceConnectionControl* playback_control, bool active)
|
||||
{
|
||||
EngineStateController::instance()->set_physical_audio_output_state(playback_control->get_name(), active);
|
||||
// GZ FIXME: remove this ugly workaround with prefix
|
||||
std::string prefix("system:");
|
||||
std::string port_name(prefix + playback_control->get_name() );
|
||||
EngineStateController::instance()->set_physical_audio_output_state(port_name, active);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -701,7 +707,12 @@ TracksControlPanel::on_input_configuration_changed ()
|
|||
DeviceConnectionControl* control = dynamic_cast<DeviceConnectionControl*> (*control_iter);
|
||||
|
||||
if (control) {
|
||||
bool new_state = EngineStateController::instance()->get_physical_audio_input_state(control->get_name() );
|
||||
|
||||
// GZ FIXME: remove this ugly workaround with prefix
|
||||
std::string prefix("system:");
|
||||
std::string port_name(prefix + control->get_name() );
|
||||
|
||||
bool new_state = EngineStateController::instance()->get_physical_audio_input_state(port_name );
|
||||
|
||||
uint16_t number = DeviceConnectionControl::NoNumber;
|
||||
std::string track_name = "";
|
||||
|
|
@ -737,7 +748,12 @@ TracksControlPanel::on_output_configuration_changed()
|
|||
DeviceConnectionControl* control = dynamic_cast<DeviceConnectionControl*> (*control_iter);
|
||||
|
||||
if (control) {
|
||||
bool new_state = EngineStateController::instance()->get_physical_audio_output_state(control->get_name() );
|
||||
|
||||
// GZ FIXME: remove this ugly workaround with prefix
|
||||
std::string prefix("system:");
|
||||
std::string port_name(prefix + control->get_name() );
|
||||
|
||||
bool new_state = EngineStateController::instance()->get_physical_audio_output_state(port_name );
|
||||
|
||||
uint16_t number = DeviceConnectionControl::NoNumber;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue