patch from Johan Mattson to make -I/-O options in engine dialog actually work (fixes #2975
git-svn-id: svn://localhost/ardour2/branches/3.0@7795 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
bbb131d895
commit
4400489f15
@ -65,6 +65,10 @@ EngineControl::EngineControl ()
|
||||
priority_spinner (priority_adjustment),
|
||||
ports_adjustment (128, 8, 1024, 1, 16),
|
||||
ports_spinner (ports_adjustment),
|
||||
input_latency_adjustment (0, 0, 99999, 1),
|
||||
input_latency (input_latency_adjustment),
|
||||
output_latency_adjustment (0, 0, 99999, 1),
|
||||
output_latency (output_latency_adjustment),
|
||||
realtime_button (_("Realtime")),
|
||||
no_memory_lock_button (_("Do not lock memory")),
|
||||
unlock_memory_button (_("Unlock memory")),
|
||||
@ -584,6 +588,19 @@ EngineControl::build_command_line (vector<string>& cmd)
|
||||
cmd.push_back ("-X raw");
|
||||
}
|
||||
|
||||
double val = input_latency_adjustment.get_value();
|
||||
|
||||
if (val) {
|
||||
cmd.push_back ("-I");
|
||||
cmd.push_back (to_string ((uint32_t) val, std::dec));
|
||||
}
|
||||
|
||||
val = output_latency_adjustment.get_value();
|
||||
if (val) {
|
||||
cmd.push_back ("-O");
|
||||
cmd.push_back (to_string ((uint32_t) val, std::dec));
|
||||
}
|
||||
|
||||
} else if (using_coreaudio) {
|
||||
|
||||
#ifdef __APPLE__
|
||||
@ -597,6 +614,19 @@ EngineControl::build_command_line (vector<string>& cmd)
|
||||
|
||||
cmd.push_back ("-d");
|
||||
cmd.push_back (device);
|
||||
|
||||
double val = input_latency_adjustment.get_value();
|
||||
|
||||
if (val) {
|
||||
cmd.push_back ("-I");
|
||||
cmd.push_back (to_string ((uint32_t) val, std::dec));
|
||||
}
|
||||
|
||||
double val = output_latency_adjustment.get_value();
|
||||
if (val) {
|
||||
cmd.push_back ("-O");
|
||||
cmd.push_back (to_string ((uint32_t) val, std::dec));
|
||||
}
|
||||
#endif
|
||||
|
||||
} else if (using_oss) {
|
||||
|
@ -55,7 +55,9 @@ class EngineControl : public Gtk::VBox {
|
||||
Gtk::SpinButton ports_spinner;
|
||||
Gtk::SpinButton input_channels;
|
||||
Gtk::SpinButton output_channels;
|
||||
Gtk::Adjustment input_latency_adjustment;
|
||||
Gtk::SpinButton input_latency;
|
||||
Gtk::Adjustment output_latency_adjustment;
|
||||
Gtk::SpinButton output_latency;
|
||||
Gtk::Label latency_label;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user