mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 21:56:30 +01:00
[Summary] Redisplay system configuration
[Reviewed] GZharun [git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 460954]
This commit is contained in:
parent
869975a050
commit
6c7799c94f
2 changed files with 18 additions and 2 deletions
|
|
@ -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()));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue