mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 13:46: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() );
|
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(),
|
eng_controller->get_current_device_name(),
|
||||||
|
channel_config_info,
|
||||||
|
operation_mode,
|
||||||
eng_controller->get_current_sample_rate()));
|
eng_controller->get_current_sample_rate()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
x="11" y="214" width="296" height="26"/>
|
x="11" y="214" width="296" height="26"/>
|
||||||
<Layout bgnormal="#404040" x="12" y="131" width="296" height="75">
|
<Layout bgnormal="#404040" x="12" y="131" width="296" height="75">
|
||||||
<Label style ="generic_control"
|
<Label style ="generic_control"
|
||||||
text="Audio Interface:\nChannel Configuration:\nOperation Mode:\nFrame Rate:\nSample Rate:"
|
text="Audio Interface:\nChannel Configuration:\nOperation Mode:\nSample Rate:"
|
||||||
x="0" y="0"/>
|
x="0" y="0"/>
|
||||||
<Label style ="generic_control"
|
<Label style ="generic_control"
|
||||||
id="session_details_label"
|
id="session_details_label"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue