2010-07-25 21:54:51 -04:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2007-2012 Carl Hetherington <carl@carlh.net>
|
|
|
|
* Copyright (C) 2007-2016 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
* Copyright (C) 2008-2009 David Robillard <d@drobilla.net>
|
2022-07-02 12:19:38 -04:00
|
|
|
* Copyright (C) 2014-2022 Robin Gareus <robin@gareus.org>
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2015-2016 Tim Mayberry <mojofunk@gmail.com>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
2010-07-25 21:54:51 -04:00
|
|
|
|
2007-10-11 18:07:47 -04:00
|
|
|
#ifndef __gtk2_ardour_engine_dialog_h__
|
|
|
|
#define __gtk2_ardour_engine_dialog_h__
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <string>
|
2022-07-01 16:27:56 -04:00
|
|
|
#include <vector>
|
2007-10-11 18:07:47 -04:00
|
|
|
|
2017-07-16 22:55:52 -04:00
|
|
|
#include <gtkmm/box.h>
|
|
|
|
#include <gtkmm/button.h>
|
|
|
|
#include <gtkmm/buttonbox.h>
|
2007-10-11 18:07:47 -04:00
|
|
|
#include <gtkmm/checkbutton.h>
|
2022-07-01 16:27:56 -04:00
|
|
|
#include <gtkmm/comboboxtext.h>
|
2017-07-16 22:55:52 -04:00
|
|
|
#include <gtkmm/expander.h>
|
2022-07-01 16:27:56 -04:00
|
|
|
#include <gtkmm/liststore.h>
|
2017-07-16 22:55:52 -04:00
|
|
|
#include <gtkmm/notebook.h>
|
2007-10-11 18:07:47 -04:00
|
|
|
#include <gtkmm/spinbutton.h>
|
|
|
|
#include <gtkmm/table.h>
|
|
|
|
|
2013-09-10 22:58:33 -04:00
|
|
|
#include "pbd/signals.h"
|
2022-07-01 16:27:56 -04:00
|
|
|
#include "pbd/xml++.h"
|
2013-09-10 22:58:33 -04:00
|
|
|
|
2017-07-15 11:38:28 -04:00
|
|
|
#include "widgets/ardour_button.h"
|
|
|
|
|
2013-09-09 13:17:53 -04:00
|
|
|
#include "ardour_dialog.h"
|
|
|
|
|
2024-04-25 00:21:21 -04:00
|
|
|
class EngineControl : public ArdourDialog, public PBD::ScopedConnectionList
|
2017-07-01 15:11:14 -04:00
|
|
|
{
|
|
|
|
public:
|
2017-07-01 12:42:24 -04:00
|
|
|
EngineControl ();
|
|
|
|
~EngineControl ();
|
2014-06-14 22:54:39 -04:00
|
|
|
|
2017-07-01 12:42:24 -04:00
|
|
|
static bool need_setup ();
|
2014-06-14 22:54:39 -04:00
|
|
|
|
2022-04-06 23:56:45 -04:00
|
|
|
XMLNode& get_state () const;
|
2022-07-01 16:27:56 -04:00
|
|
|
bool set_state (const XMLNode&);
|
2014-06-14 22:54:39 -04:00
|
|
|
|
2017-07-01 12:42:24 -04:00
|
|
|
void set_desired_sample_rate (uint32_t);
|
2014-06-14 22:54:39 -04:00
|
|
|
|
2017-07-01 15:11:14 -04:00
|
|
|
private:
|
2017-07-01 12:42:24 -04:00
|
|
|
Gtk::Notebook notebook;
|
|
|
|
|
|
|
|
Gtk::Label engine_status;
|
|
|
|
|
|
|
|
/* core fields used by all backends */
|
|
|
|
|
2022-07-02 12:19:38 -04:00
|
|
|
Gtk::VBox main_vbox;
|
|
|
|
Gtk::HBox main_hbox;
|
|
|
|
|
|
|
|
Gtk::Table settings_table;
|
|
|
|
Gtk::Table latency_table;
|
|
|
|
Gtk::Expander latency_expander;
|
|
|
|
Gtk::Expander monitor_expander;
|
2017-07-01 12:42:24 -04:00
|
|
|
|
|
|
|
Gtk::ComboBoxText backend_combo;
|
|
|
|
Gtk::ComboBoxText driver_combo;
|
|
|
|
Gtk::ComboBoxText device_combo;
|
|
|
|
Gtk::ComboBoxText input_device_combo;
|
|
|
|
Gtk::ComboBoxText output_device_combo;
|
|
|
|
Gtk::ComboBoxText sample_rate_combo;
|
|
|
|
Gtk::ComboBoxText midi_option_combo;
|
|
|
|
Gtk::ComboBoxText buffer_size_combo;
|
|
|
|
Gtk::ComboBoxText nperiods_combo;
|
2022-07-01 16:27:56 -04:00
|
|
|
Gtk::Adjustment input_latency_adjustment;
|
|
|
|
Gtk::SpinButton input_latency;
|
|
|
|
Gtk::Adjustment output_latency_adjustment;
|
|
|
|
Gtk::SpinButton output_latency;
|
2022-06-30 19:22:12 -04:00
|
|
|
Gtk::ComboBoxText monitor_model_combo;
|
2017-07-01 12:42:24 -04:00
|
|
|
|
2022-07-01 17:54:44 -04:00
|
|
|
Gtk::Label lbl_audio_system;
|
|
|
|
Gtk::Label lbl_midi_system;
|
|
|
|
Gtk::Label lbl_driver;
|
|
|
|
Gtk::Label lbl_device;
|
|
|
|
Gtk::Label lbl_input_device;
|
|
|
|
Gtk::Label lbl_output_device;
|
|
|
|
Gtk::Label lbl_sample_rate;
|
|
|
|
Gtk::Label lbl_buffer_size;
|
|
|
|
Gtk::Label lbl_nperiods;
|
|
|
|
Gtk::Label lbl_input_latency;
|
|
|
|
Gtk::Label lbl_output_latency;
|
|
|
|
Gtk::Label lbl_monitor_model;
|
|
|
|
Gtk::Label lbl_jack_msg;
|
2022-07-02 12:19:38 -04:00
|
|
|
|
|
|
|
Gtk::Label unit_samples_txt1;
|
|
|
|
Gtk::Label unit_samples_txt2;
|
2022-07-01 17:54:44 -04:00
|
|
|
Gtk::Label buffer_size_duration_label;
|
|
|
|
|
2017-07-15 11:38:28 -04:00
|
|
|
ArdourWidgets::ArdourButton control_app_button;
|
|
|
|
ArdourWidgets::ArdourButton midi_devices_button;
|
|
|
|
ArdourWidgets::ArdourButton start_stop_button;
|
|
|
|
ArdourWidgets::ArdourButton update_devices_button;
|
|
|
|
ArdourWidgets::ArdourButton use_buffered_io_button;
|
2019-09-26 15:12:37 -04:00
|
|
|
ArdourWidgets::ArdourButton try_autostart_button;
|
2017-07-01 12:42:24 -04:00
|
|
|
|
2022-07-01 16:27:56 -04:00
|
|
|
Gtk::Button connect_disconnect_button;
|
2017-07-01 12:42:24 -04:00
|
|
|
|
|
|
|
/* latency measurement */
|
|
|
|
|
2019-05-05 12:15:18 -04:00
|
|
|
class ChannelNameCols : public Gtk::TreeModelColumnRecord
|
|
|
|
{
|
2022-07-01 16:27:56 -04:00
|
|
|
public:
|
|
|
|
ChannelNameCols ()
|
|
|
|
{
|
|
|
|
add (pretty_name);
|
|
|
|
add (port_name);
|
|
|
|
}
|
|
|
|
Gtk::TreeModelColumn<std::string> pretty_name;
|
|
|
|
Gtk::TreeModelColumn<std::string> port_name;
|
2019-05-05 12:15:18 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
ChannelNameCols lm_output_channel_cols;
|
|
|
|
Glib::RefPtr<Gtk::ListStore> lm_output_channel_list;
|
|
|
|
Gtk::ComboBox lm_output_channel_combo;
|
|
|
|
|
|
|
|
ChannelNameCols lm_input_channel_cols;
|
|
|
|
Glib::RefPtr<Gtk::ListStore> lm_input_channel_list;
|
|
|
|
Gtk::ComboBox lm_input_channel_combo;
|
|
|
|
|
2017-07-15 11:38:28 -04:00
|
|
|
Gtk::Label lm_measure_label;
|
|
|
|
Gtk::Button lm_measure_button;
|
|
|
|
Gtk::Button lm_use_button;
|
|
|
|
Gtk::Button lm_back_button;
|
|
|
|
ArdourWidgets::ArdourButton lm_button_audio;
|
|
|
|
Gtk::Label lm_title;
|
|
|
|
Gtk::Label lm_preamble;
|
|
|
|
Gtk::Label lm_results;
|
|
|
|
Gtk::Table lm_table;
|
|
|
|
Gtk::VBox lm_vbox;
|
|
|
|
bool have_lm_results;
|
|
|
|
bool lm_running;
|
2021-05-11 18:09:37 -04:00
|
|
|
bool was_running_before_lm;
|
2017-07-01 12:42:24 -04:00
|
|
|
|
|
|
|
/* MIDI Tab */
|
|
|
|
|
2022-07-01 16:27:56 -04:00
|
|
|
Gtk::VBox midi_vbox;
|
2017-07-01 12:42:24 -04:00
|
|
|
Gtk::Button midi_back_button;
|
2022-07-01 16:27:56 -04:00
|
|
|
Gtk::Table midi_device_table;
|
2017-07-01 12:42:24 -04:00
|
|
|
|
|
|
|
/* MIDI ... JACK */
|
|
|
|
|
|
|
|
Gtk::CheckButton aj_button;
|
|
|
|
|
2022-07-01 16:27:56 -04:00
|
|
|
uint32_t ignore_changes; // state save/load
|
2017-07-01 12:42:24 -04:00
|
|
|
uint32_t ignore_device_changes; // AudioEngine::DeviceListChanged
|
|
|
|
uint32_t _desired_sample_rate;
|
|
|
|
bool started_at_least_once;
|
|
|
|
bool queue_device_changed;
|
|
|
|
|
|
|
|
void driver_changed ();
|
|
|
|
void backend_changed ();
|
|
|
|
void sample_rate_changed ();
|
|
|
|
void buffer_size_changed ();
|
|
|
|
void nperiods_changed ();
|
2020-05-08 19:19:03 -04:00
|
|
|
void latency_changed ();
|
2017-07-01 12:42:24 -04:00
|
|
|
void midi_option_changed ();
|
2022-06-30 19:22:12 -04:00
|
|
|
void monitor_model_changed ();
|
2017-07-01 12:42:24 -04:00
|
|
|
|
|
|
|
void refresh_midi_display (std::string focus = "");
|
2014-06-14 22:54:39 -04:00
|
|
|
|
2015-08-09 22:49:42 -04:00
|
|
|
void update_midi_options ();
|
|
|
|
|
2015-12-04 19:32:56 -05:00
|
|
|
std::string bufsize_as_string (uint32_t);
|
|
|
|
std::string nperiods_as_string (uint32_t);
|
2013-09-17 10:01:24 -04:00
|
|
|
|
2022-07-01 16:27:56 -04:00
|
|
|
std::vector<float> get_default_sample_rates ();
|
2015-08-11 00:13:06 -04:00
|
|
|
std::vector<uint32_t> get_default_buffer_sizes ();
|
|
|
|
|
2022-07-01 16:27:56 -04:00
|
|
|
std::vector<float> get_sample_rates_for_all_devices ();
|
2015-08-10 23:02:25 -04:00
|
|
|
std::vector<uint32_t> get_buffer_sizes_for_all_devices ();
|
|
|
|
|
2022-07-01 16:27:56 -04:00
|
|
|
float get_rate () const;
|
|
|
|
uint32_t get_buffer_size () const;
|
|
|
|
uint32_t get_nperiods () const;
|
|
|
|
uint32_t get_input_latency () const;
|
|
|
|
uint32_t get_output_latency () const;
|
|
|
|
std::string get_device_name () const;
|
|
|
|
std::string get_input_device_name () const;
|
|
|
|
std::string get_output_device_name () const;
|
|
|
|
std::string get_driver () const;
|
|
|
|
std::string get_backend () const;
|
2017-07-01 12:42:24 -04:00
|
|
|
std::string get_midi_option () const;
|
2022-07-01 16:27:56 -04:00
|
|
|
bool get_use_buffered_io () const;
|
2013-08-05 12:51:51 -04:00
|
|
|
|
2015-08-25 10:16:36 -04:00
|
|
|
std::string get_default_device (const std::string&,
|
|
|
|
const std::vector<std::string>&);
|
|
|
|
|
2017-07-01 12:42:24 -04:00
|
|
|
void device_changed ();
|
|
|
|
void input_device_changed ();
|
|
|
|
void output_device_changed ();
|
|
|
|
bool set_driver_popdown_strings ();
|
|
|
|
bool set_device_popdown_strings ();
|
|
|
|
bool set_input_device_popdown_strings ();
|
|
|
|
bool set_output_device_popdown_strings ();
|
|
|
|
void set_samplerate_popdown_strings ();
|
|
|
|
void set_buffersize_popdown_strings ();
|
|
|
|
void set_nperiods_popdown_strings ();
|
|
|
|
void list_devices ();
|
|
|
|
void show_buffer_duration ();
|
|
|
|
|
|
|
|
void configure_midi_devices ();
|
|
|
|
|
|
|
|
struct MidiDeviceSetting {
|
2017-07-01 15:11:14 -04:00
|
|
|
std::string name;
|
2022-07-01 16:27:56 -04:00
|
|
|
bool enabled;
|
|
|
|
uint32_t input_latency;
|
|
|
|
uint32_t output_latency;
|
2017-07-01 15:11:14 -04:00
|
|
|
|
|
|
|
MidiDeviceSetting (std::string n, bool en = true, uint32_t inl = 0, uint32_t oul = 0)
|
2022-07-01 16:27:56 -04:00
|
|
|
: name (n)
|
|
|
|
, enabled (en)
|
|
|
|
, input_latency (inl)
|
|
|
|
, output_latency (oul)
|
|
|
|
{
|
|
|
|
}
|
2017-07-01 12:42:24 -04:00
|
|
|
};
|
2014-06-13 06:01:55 -04:00
|
|
|
|
2023-02-16 18:33:28 -05:00
|
|
|
typedef std::shared_ptr<MidiDeviceSetting> MidiDeviceSettings;
|
2022-07-01 16:27:56 -04:00
|
|
|
bool _can_set_midi_latencies;
|
|
|
|
std::vector<MidiDeviceSettings> _midi_devices;
|
2014-06-13 06:01:55 -04:00
|
|
|
|
2022-07-01 16:27:56 -04:00
|
|
|
MidiDeviceSettings find_midi_device (std::string devicename) const
|
|
|
|
{
|
|
|
|
for (std::vector<MidiDeviceSettings>::const_iterator p = _midi_devices.begin (); p != _midi_devices.end (); ++p) {
|
2017-07-01 15:11:14 -04:00
|
|
|
if ((*p)->name == devicename) {
|
|
|
|
return *p;
|
|
|
|
}
|
2017-07-01 12:42:24 -04:00
|
|
|
}
|
2022-07-01 16:27:56 -04:00
|
|
|
return MidiDeviceSettings ();
|
2017-07-01 12:42:24 -04:00
|
|
|
}
|
2014-06-13 06:01:55 -04:00
|
|
|
|
2017-07-01 12:42:24 -04:00
|
|
|
struct StateStruct {
|
2022-07-01 16:27:56 -04:00
|
|
|
std::string backend;
|
|
|
|
std::string driver;
|
|
|
|
std::string device;
|
|
|
|
std::string input_device;
|
|
|
|
std::string output_device;
|
|
|
|
float sample_rate;
|
|
|
|
uint32_t buffer_size;
|
|
|
|
uint32_t n_periods;
|
|
|
|
uint32_t input_latency;
|
|
|
|
uint32_t output_latency;
|
|
|
|
bool active;
|
|
|
|
bool use_buffered_io;
|
|
|
|
std::string midi_option;
|
2017-07-01 15:11:14 -04:00
|
|
|
std::vector<MidiDeviceSettings> midi_devices;
|
2022-07-01 16:27:56 -04:00
|
|
|
std::string lm_input;
|
|
|
|
std::string lm_output;
|
|
|
|
time_t lru;
|
|
|
|
|
|
|
|
StateStruct ()
|
|
|
|
: sample_rate (48000)
|
|
|
|
, buffer_size (1024)
|
2023-06-02 15:44:36 -04:00
|
|
|
, n_periods (0)
|
2022-07-01 16:27:56 -04:00
|
|
|
, input_latency (0)
|
|
|
|
, output_latency (0)
|
|
|
|
, active (false)
|
|
|
|
, use_buffered_io (false)
|
|
|
|
, lru (0)
|
|
|
|
{
|
|
|
|
}
|
2017-07-01 12:42:24 -04:00
|
|
|
};
|
2013-09-04 15:45:54 -04:00
|
|
|
|
2023-02-16 18:33:28 -05:00
|
|
|
typedef std::shared_ptr<StateStruct> State;
|
2023-06-02 15:44:36 -04:00
|
|
|
typedef std::list<State> StateList;
|
|
|
|
static bool state_sort_cmp (const State& a, const State& b);
|
2017-07-01 12:42:24 -04:00
|
|
|
|
|
|
|
StateList states;
|
|
|
|
|
2020-05-18 09:11:36 -04:00
|
|
|
bool set_state_for_backend (const std::string& backend);
|
|
|
|
|
2017-07-01 12:42:24 -04:00
|
|
|
State get_matching_state (const std::string& backend,
|
|
|
|
const std::string& driver,
|
2023-06-02 15:44:36 -04:00
|
|
|
const std::string& device,
|
|
|
|
const float sample_rate = 0);
|
2017-07-01 12:42:24 -04:00
|
|
|
State get_matching_state (const std::string& backend,
|
|
|
|
const std::string& driver,
|
|
|
|
const std::string& input_device,
|
2023-06-02 15:44:36 -04:00
|
|
|
const std::string& output_device,
|
|
|
|
const float sample_rate = 0);
|
2022-07-01 16:27:56 -04:00
|
|
|
|
2017-07-01 12:42:24 -04:00
|
|
|
State get_saved_state_for_currently_displayed_backend_and_device ();
|
2022-07-01 16:27:56 -04:00
|
|
|
void maybe_display_saved_state ();
|
2017-07-01 12:42:24 -04:00
|
|
|
State save_state ();
|
2022-07-01 16:27:56 -04:00
|
|
|
void store_state (State);
|
|
|
|
bool equivalent_states (const State&, const State&);
|
2013-09-17 21:09:13 -04:00
|
|
|
|
2015-08-10 09:20:07 -04:00
|
|
|
bool set_current_state (const State& state);
|
|
|
|
void set_default_state ();
|
2015-08-08 19:39:01 -04:00
|
|
|
|
2022-07-01 16:27:56 -04:00
|
|
|
bool _have_control;
|
2013-09-06 21:00:01 -04:00
|
|
|
|
2017-07-01 12:42:24 -04:00
|
|
|
void build_notebook ();
|
|
|
|
void build_full_control_notebook ();
|
|
|
|
void build_no_control_notebook ();
|
2022-07-02 12:19:38 -04:00
|
|
|
void populate_action_area (int);
|
2013-09-09 13:17:53 -04:00
|
|
|
|
2015-08-09 08:36:26 -04:00
|
|
|
void connect_changed_signals ();
|
2015-08-09 09:16:02 -04:00
|
|
|
void block_changed_signals ();
|
|
|
|
void unblock_changed_signals ();
|
|
|
|
|
|
|
|
class SignalBlocker
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SignalBlocker (EngineControl& engine_control, const std::string& reason);
|
|
|
|
~SignalBlocker ();
|
|
|
|
|
|
|
|
private:
|
|
|
|
EngineControl& ec;
|
2022-07-01 16:27:56 -04:00
|
|
|
std::string m_reason;
|
2015-08-09 09:16:02 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
uint32_t block_signals;
|
|
|
|
|
|
|
|
sigc::connection backend_combo_connection;
|
|
|
|
sigc::connection driver_combo_connection;
|
|
|
|
sigc::connection sample_rate_combo_connection;
|
|
|
|
sigc::connection buffer_size_combo_connection;
|
2015-12-04 19:32:56 -05:00
|
|
|
sigc::connection nperiods_combo_connection;
|
2015-08-09 09:16:02 -04:00
|
|
|
sigc::connection device_combo_connection;
|
|
|
|
sigc::connection input_device_combo_connection;
|
|
|
|
sigc::connection output_device_combo_connection;
|
|
|
|
sigc::connection midi_option_combo_connection;
|
|
|
|
sigc::connection input_latency_connection;
|
|
|
|
sigc::connection output_latency_connection;
|
2022-06-30 19:22:12 -04:00
|
|
|
sigc::connection monitor_model_connection;
|
2022-07-01 16:27:56 -04:00
|
|
|
sigc::connection latency_timeout;
|
|
|
|
sigc::connection lm_back_button_signal;
|
2015-08-09 08:36:26 -04:00
|
|
|
|
2024-04-25 00:21:21 -04:00
|
|
|
void on_show ();
|
|
|
|
void on_map ();
|
2022-07-02 12:19:38 -04:00
|
|
|
void on_monitor_expand ();
|
|
|
|
void on_latency_expand ();
|
2019-09-26 15:12:37 -04:00
|
|
|
void config_parameter_changed (std::string const&);
|
2017-07-01 12:42:24 -04:00
|
|
|
void control_app_button_clicked ();
|
|
|
|
void start_stop_button_clicked ();
|
|
|
|
void update_devices_button_clicked ();
|
|
|
|
void use_buffered_io_button_clicked ();
|
2019-09-26 15:12:37 -04:00
|
|
|
void try_autostart_button_clicked ();
|
2017-07-01 12:42:24 -04:00
|
|
|
void use_latency_button_clicked ();
|
|
|
|
void manage_control_app_sensitivity ();
|
2022-07-01 16:27:56 -04:00
|
|
|
int push_state_to_backend (bool start);
|
2017-07-01 12:42:24 -04:00
|
|
|
void post_push ();
|
|
|
|
void update_sensitivity ();
|
2015-10-02 21:40:34 -04:00
|
|
|
bool start_engine ();
|
2015-12-04 11:34:46 -05:00
|
|
|
bool stop_engine (bool for_latency = false);
|
2013-09-10 22:58:33 -04:00
|
|
|
|
2017-07-01 12:42:24 -04:00
|
|
|
/* latency measurement */
|
|
|
|
void latency_button_clicked ();
|
|
|
|
void latency_back_button_clicked ();
|
|
|
|
bool check_audio_latency_measurement ();
|
|
|
|
bool check_midi_latency_measurement ();
|
|
|
|
void enable_latency_tab ();
|
|
|
|
void disable_latency_tab ();
|
|
|
|
void start_latency_detection ();
|
|
|
|
void end_latency_detection ();
|
|
|
|
|
2022-07-01 16:27:56 -04:00
|
|
|
MidiDeviceSettings _measure_midi;
|
|
|
|
|
|
|
|
void midi_latency_adjustment_changed (Gtk::Adjustment*, MidiDeviceSettings, bool);
|
|
|
|
void midi_device_enabled_toggled (ArdourWidgets::ArdourButton*, MidiDeviceSettings);
|
|
|
|
|
|
|
|
/* main dialog events */
|
2017-07-01 12:42:24 -04:00
|
|
|
void on_switch_page (GtkNotebookPage*, guint page_num);
|
2024-04-25 00:21:21 -04:00
|
|
|
bool on_delete_event (GdkEventAny*);
|
|
|
|
void on_response (int);
|
2017-07-01 12:42:24 -04:00
|
|
|
|
2022-07-01 16:27:56 -04:00
|
|
|
void connect_disconnect_click ();
|
|
|
|
void calibrate_audio_latency ();
|
|
|
|
void calibrate_midi_latency (MidiDeviceSettings);
|
|
|
|
|
2017-07-01 12:42:24 -04:00
|
|
|
void engine_running ();
|
|
|
|
void engine_stopped ();
|
|
|
|
void device_list_changed ();
|
|
|
|
|
2022-07-01 16:27:56 -04:00
|
|
|
PBD::ScopedConnection running_connection;
|
2017-07-01 12:42:24 -04:00
|
|
|
PBD::ScopedConnectionList stopped_connection;
|
2022-07-01 16:27:56 -04:00
|
|
|
PBD::ScopedConnection devicelist_connection;
|
2007-10-11 18:07:47 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __gtk2_ardour_engine_dialog_h__ */
|