EngineControl::EngineControl ()
: periods_adjustment (2, 2, 16, 1, 2),
periods_spinner (periods_adjustment),
- priority_adjustment (60, 10, 90, 1, 10),
- priority_spinner (priority_adjustment),
ports_adjustment (128, 8, 1024, 1, 16),
ports_spinner (ports_adjustment),
input_latency_adjustment (0, 0, 99999, 1),
++row;
realtime_button.set_active (true);
- realtime_button.signal_toggled().connect (sigc::mem_fun (*this, &EngineControl::realtime_changed));
- realtime_changed ();
#if PROVIDE_TOO_MANY_OPTIONS
#ifndef __APPLE__
- label = manage (new Label (_("Realtime Priority")));
- label->set_alignment (1.0, 0.5);
- options_packer.attach (*label, 0, 1, row, row + 1, FILL|EXPAND, (AttachOptions) 0);
- options_packer.attach (priority_spinner, 1, 2, row, row + 1, FILL|EXPAND, (AttachOptions) 0);
- ++row;
- priority_spinner.set_value (60);
-
options_packer.attach (no_memory_lock_button, 1, 2, row, row + 1, FILL|EXPAND, (AttachOptions) 0);
++row;
options_packer.attach (unlock_memory_button, 1, 2, row, row + 1, FILL|EXPAND, (AttachOptions) 0);
if (realtime_button.get_active()) {
cmd.push_back ("-R");
- cmd.push_back ("-P");
- cmd.push_back (to_string ((uint32_t) floor (priority_spinner.get_value()), std::dec));
} else {
cmd.push_back ("-r"); /* override jackd's default --realtime */
}
return 0;
}
-void
-EngineControl::realtime_changed ()
-{
-#ifndef __APPLE__
- priority_spinner.set_sensitive (realtime_button.get_active());
-#endif
-}
-
void
EngineControl::enumerate_devices (const string& driver)
{
child->add_property ("val", to_string (periods_adjustment.get_value(), std::dec));
root->add_child_nocopy (*child);
- child = new XMLNode ("priority");
- child->add_property ("val", to_string (priority_adjustment.get_value(), std::dec));
- root->add_child_nocopy (*child);
-
child = new XMLNode ("ports");
child->add_property ("val", to_string (ports_adjustment.get_value(), std::dec));
root->add_child_nocopy (*child);
if (child->name() == "periods") {
val = atoi (strval);
periods_adjustment.set_value(val);
- } else if (child->name() == "priority") {
- val = atoi (strval);
- priority_adjustment.set_value(val);
} else if (child->name() == "ports") {
val = atoi (strval);
ports_adjustment.set_value(val);