[Summary] Redisplay system configuration

[Reviewed] GZharun

[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 460954]
This commit is contained in:
Nikolay Polyanovskii 2014-05-16 03:28:37 -05:00
parent 869975a050
commit 6c7799c94f
2 changed files with 18 additions and 2 deletions

View file

@ -202,8 +202,24 @@ void SessionDialog::redisplay_system_configuration ()
{
ARDOUR::EngineStateController* eng_controller (ARDOUR::EngineStateController::instance() );
_session_details_label.set_text(string_compose (_("%1\n\n\n\n%2"),
std::string operation_mode = _("UNKNOWN");
if (Config->get_output_auto_connect() & AutoConnectPhysical) {
operation_mode = _("MULTI OUT");
} else if (Config->get_output_auto_connect() & AutoConnectMaster) {
operation_mode = _("STEREO OUT");
}
string channel_config_info;
int n_ch_in = eng_controller->get_available_inputs_count();
int n_ch_out = eng_controller->get_available_outputs_count();
std::stringstream ss;
ss << n_ch_in << " In, " << n_ch_out << " Out";
channel_config_info = ss.str();
_session_details_label.set_text(string_compose (_("%1\n%2\n%3\n%4"),
eng_controller->get_current_device_name(),
channel_config_info,
operation_mode,
eng_controller->get_current_sample_rate()));
}