Commit graph

91 commits

Author SHA1 Message Date
Robin Gareus
f9e5e4360e Move more Gtkmm2ext widgets into libwidget 2017-07-17 21:06:04 +02:00
Robin Gareus
5c92613698 Separate Ardour UI widgets into dedicated library 2017-07-17 21:06:04 +02:00
Robin Gareus
b976bf8986 NO-OP whitespace & foratting of header files 2017-07-01 21:19:56 +02:00
Thomas Brand
63ea7b6516 NO-OP whitespace (updated GH PR #357) 2017-07-01 19:28:26 +02:00
Robin Gareus
d766095732 Further tweaks to EngineDialog z-axis stacking
When there's no main window (initial setup, no transient parent),
preset a normal window listed in the task-bar.

The duality the Engine Dialog being used as Ardour-WM managed non-modal
Window (Menu > A/M Setup) and modal Dialog (AudioEngineSetupRequired)
complicates this a bit.
2016-12-07 14:50:17 +01:00
Robin Gareus
27d0b67b8f Remove close/OK buttons from engine dialog 2016-11-30 14:44:36 +01:00
Paul Davis
05bc96f4d2 move MIDI port options out of engine dialog and into prefs 2016-10-19 17:49:35 -04:00
Paul Davis
8357775fbb further work on a MIDI port functionality dialog 2016-10-18 18:01:03 -04:00
Paul Davis
1d39500e64 beginnings of a tab in Audio/MIDI setup to manage MIDI port functionality 2016-10-18 16:56:35 -04:00
Robin Gareus
652468a344 add a try-autostart-engine option (most recently used settings) 2016-04-18 14:11:22 +02:00
Tim Mayberry
2b4ac72e5d Add button to Engine Dialog to choose between Portaudio callback and blocking API 2016-02-11 12:15:07 +10:00
Robin Gareus
c0a843a905 fix device-list update concurrency issue.
It may happen that during push_state_to_backend() a device is
reconfigured in a way that triggers a "Device Changed" callback before
the engine is started. This callback can trigger a change to the
configuration that will be used when the engine is actually started.

This has been seen on OSX in conjunction with Aggregate Devices
(even if the aggregate is not used, but the device which is used
is also part of an aggregate) 

example: HW changed callback arrives, device-list is re-populated,
*A*irplay" is at the top of the list, Airplay supports only 44.1K,
Samplerate changes... later save also writes this new rate to the file.
2016-01-29 01:12:53 +01:00
Robin Gareus
b5c5b7e493 GUI chores to show nperiods option. 2015-12-05 01:53:13 +01:00
Robin Gareus
2529b9db96 GUI handling for live latency-measurement 2015-12-04 17:34:46 +01:00
Robin Gareus
911830726e prefer recently used states. 2015-11-23 22:45:16 +01:00
Robin Gareus
b754c4341e restore last used driver+devices for a given backend. 2015-11-23 22:45:16 +01:00
Tim Mayberry
ef0f13cb84 Stop engine when clicking back button in latency measurement tab of EngineControl dialog
The engine is started when you switch to latency measurement tab but it isn't
stopped if you just click the back button without measuring for latency.
2015-10-06 13:29:57 +10:00
Tim Mayberry
cd4dd08931 Add EngineControl::stop_engine method to show errors when stopping engine
This replaces using ARDOUR_UI::disconnect_from_session which is only used by the
EngineControl class. ARDOUR_UI::disconnect_from_session also disconnects from
the AudioEngine::Halted signal which seems unnecessary as Halted is not emitted
when stopping the engine and calling update_sample_rate() which is already
handled when the AudioEngine::Stopped signal is emitted.
2015-10-06 13:29:57 +10:00
Tim Mayberry
1195aeb64e Handle all errors when starting backend in EngineDialog 2015-10-06 13:29:57 +10:00
Tim Mayberry
dbe3500f24 Add utility method for choosing which device/s to display in Audio Setup dialog 2015-09-02 12:07:15 +10:00
Tim Mayberry
9626e0c413 Add "Refresh Devices" button in Audio Setup dialog for backends that support it
This allows the portaudio library to be reinitialized to pick up new devices
and changes to ASIO buffer changes made externally.
2015-09-02 12:07:15 +10:00
Tim Mayberry
e6492319b1 Remove Apply button from Audio Setup dialog now that there is a start/stop button 2015-09-02 12:07:15 +10:00
Tim Mayberry
dd275327a4 Change "Stop" button into a Start/Stop button in Audio Setup dialog 2015-09-02 12:07:15 +10:00
Robin Gareus
52c25cab36 allow to stop engine for re-configure 2015-08-11 15:38:38 +02:00
Robin Gareus
6bb51a26eb consolidate engine-dialog widget sensitivity logic.
Use a single function with the complete logic.

Since the callgraph is complex, there is internal state as well as GUI
state (different pages), do not rely on individual methods to get it
right.

A widget's sensitivity should only be controlled by one function.
2015-08-11 15:38:31 +02:00
Tim Mayberry
c80e4c04c5 Extract two utility methods from EngineControl::set_samplerate/bufferize_popdown_strings 2015-08-11 14:13:06 +10:00
Tim Mayberry
a8daa36901 Use a union of all sample rates and buffer sizes for all devices in EngineControl
Using just the input device doesn't work in the case that the input device is
an invalid/None device
2015-08-11 14:00:57 +10:00
Tim Mayberry
ab7cf8c7a7 Fix state restoration in EngineControl dialog for backends with driver selection
This also prevents backend_changed from being called more that once in the
EngineControl ctor
2015-08-11 09:24:53 +10:00
Tim Mayberry
001c1a0910 Extract part of EngineControl::backend_changed into EngineControl::update_midi_options 2015-08-11 09:24:52 +10:00
Tim Mayberry
1bd15bef6c Add methods in EngineControl for blocking and unblocking signals
Only intended to be used with the nested SignalBlocker class
2015-08-11 09:24:52 +10:00
Tim Mayberry
324b5ffbac Refactor part of EngineDialog ctor into connect_changed_signals method 2015-08-11 09:24:52 +10:00
Tim Mayberry
f428cb4bf1 Refactor part of EngineControl::set_state into new set_current_state method 2015-08-11 09:24:52 +10:00
Tim Mayberry
a9c149216d Remove unused method in EngineControl dialog 2015-08-11 09:24:52 +10:00
Tim Mayberry
2437bbbe23 Fix state restoration in Engine dialog for Backends with driver selection
Connect to the backend_combo changed signal after setting state as calling
backend_combo.set_active_text() in set_state was triggering backend_changed(),
which would then see the driver_combo had not been set and set it to the
incorrect value.

The value/name of the backend needs to be restored first then we can populate
the driver combo and set the correct active entry from the saved state. After
which backend_changed() will populate the device combo's etc so they can then
be set to the correct active values from the saved state.
2015-07-31 09:59:53 +10:00
Tim Mayberry
d9f24a46aa Allow selection of input and output devices in EngineDialog for backends that support it
Some refactoring was necessary to avoid code duplication

Restoring of device state for input and output devices still doesn't work
correctly. I'm not quite sure what the issue is at this stage.
2015-05-31 20:02:07 +02:00
Robin Gareus
dd6ee69ef8 engine dialog, update device is changed. 2015-03-07 14:35:33 +01:00
Robin Gareus
818ed5fe12 update Engine Dialog when devices are dis/connected. 2015-03-06 06:24:56 +01:00
Robin Gareus
031f68fb9d add a simple status indicator to the Engine Dialog 2015-01-25 10:19:46 +01:00
Robin Gareus
d2cbb28f79 Engine Dialog: fix various signal connections
connect/disconnect button was connected multiple times
Also the button allowed to start a backend with
invalid settings (after changing backend).

Q: does “Connect to” make sense? It’s redundant with 
“Apply”.
2015-01-17 21:03:56 +01:00
Robin Gareus
001e4ca684 Engine Dialog: focus OK button (press enter to cont w/previous settings) 2014-09-01 22:06:45 +02:00
Robin Gareus
371bf59a94 for backends w/o control, save a fake state with only the "active" attribute.
This makes ardour start directly with external jack without asking if jack
was previously used. It also retains jackd settings if jackd was previously
started by ardour.
2014-06-23 05:12:08 +02:00
Robin Gareus
33ea2d25f1 hide "turn down volume" label for midi-latency measurement 2014-06-16 23:36:29 +02:00
Robin Gareus
61ab4f0fb0 be smart, use boost::shared_ptr 2014-06-15 13:24:41 +02:00
Robin Gareus
f312113163 enable ArdourButton focus in EngineDialog 2014-06-14 00:22:32 +02:00
Robin Gareus
2e88935bbf add GUI for midi-device settings (and properly indent the code) 2014-06-13 12:01:55 +02:00
Robin Gareus
eb289a76af basic Midi latency measurement GUI (re-use Audio latency notebook) 2014-06-08 14:48:10 +02:00
Paul Davis
4c0a274b43 do not push new state to backend from audio/MIDI setup until OK or Apply are clicked (i.e. do not do this when device is changed) 2013-11-27 17:41:22 -05:00
Paul Davis
4404a38996 prevent button in latency measurement dialog from changing size when relabelled 2013-10-15 14:55:54 -04:00
Paul Davis
6e0a3c4853 try to prevent crash if running latency calibration with JACK setup that is lacking input or output ports (re: #5721 and #5719) 2013-10-15 13:15:03 -04:00
Paul Davis
e0a3c3f4fa rework things for Audio/MIDI setup dialog a bit: no tabs being the most noticeable change 2013-10-12 14:57:32 -04:00