summaryrefslogtreecommitdiff
path: root/gtk2_ardour/engine_dialog.cc
AgeCommit message (Collapse)Author
2015-12-05GUI chores to show nperiods option.Robin Gareus
2015-12-04GUI handling for live latency-measurementRobin Gareus
2015-12-04remove duplicate check (same is done few lines above)Robin Gareus
2015-11-23prefer recently used states.Robin Gareus
2015-11-23restore last used driver+devices for a given backend.Robin Gareus
2015-10-06Do not restore engine state if we don't have controlRobin Gareus
When connecting to already running jack, display jack's buffersize correctly.
2015-10-06Stop engine when clicking back button in latency measurement tab of ↵Tim Mayberry
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-06Add EngineControl::stop_engine method to show errors when stopping engineTim Mayberry
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-06Handle all errors when starting backend in EngineDialogTim Mayberry
2015-10-06Align switch statement with case labels to reduce indentation in EngineDialogTim Mayberry
2015-10-05remove unused fstream includesRobin Gareus
2015-10-05NOOP, remove trailing tabs/whitespace.Robin Gareus
2015-10-01Add parent window argument to ARDOUR_UI::check_audioengineTim Mayberry
Ensures relevant placement of the dialog when presented
2015-10-01Display warning when closing Audio Setup dialog with engine stoppedTim Mayberry
Only show warning when a session is loaded
2015-10-01Don't hide Audio Setup dialog when clicking 'OK' if engine fails to startTim Mayberry
This has to be handled in two places, in ARDOUR_UI::do_audio_midi_setup and in the dialogs response handler and in as the window can also be triggered via the window action manager.
2015-09-10fix a small memleak.Robin Gareus
downcase(char*) requires free(), downcase(std::string) does not.
2015-09-06initialize some uninitialized variables.Robin Gareus
really just nitpicking (keep valgrind clean).
2015-09-02Add utility method for choosing which device/s to display in Audio Setup dialogTim Mayberry
2015-09-02Use previously set buffer size in EngineDialog if possibleTim Mayberry
This is also to support refreshing of devices so that the buffer size isn't reset.
2015-09-02Add "Refresh Devices" button in Audio Setup dialog for backends that support itTim Mayberry
This allows the portaudio library to be reinitialized to pick up new devices and changes to ASIO buffer changes made externally.
2015-09-02Add some debugging output for state restoration in Audio Setup dialogTim Mayberry
2015-09-02Remove Apply button from Audio Setup dialog now that there is a start/stop ↵Tim Mayberry
button
2015-09-02Change "Stop" button into a Start/Stop button in Audio Setup dialogTim Mayberry
2015-08-27use program-name for internal portsRobin Gareus
2015-08-13Fix state restoration in EngineControl dialog for backends with driver selectionTim Mayberry
We want to save the driver name even when the engine is running and the driver combo is insensitive
2015-08-12hide “Midi Setup” button on OSX and Windows.Robin Gareus
2015-08-11remove -Woverload-virtual ambiguity (from 1d3690d)Robin Gareus
2015-08-11update driver selection sensitivityRobin Gareus
2015-08-11refine "Running" message.Robin Gareus
2015-08-11don't allow to change devices while engine is running.Robin Gareus
2015-08-11allow to stop engine for re-configureRobin Gareus
2015-08-11consolidate engine-dialog widget sensitivity logic.Robin Gareus
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-11Engine Dialog: use new APIRobin Gareus
2015-08-11Fix to ensure there are always sample rates and buffer sizes in the dropdownTim Mayberry
This can happen if both input and output devices are set to None for instance on backends that report no supported SR or buffer size for the None device.
2015-08-11Extract two utility methods from ↵Tim Mayberry
EngineControl::set_samplerate/bufferize_popdown_strings
2015-08-11Use a union of all sample rates and buffer sizes for all devices in ↵Tim Mayberry
EngineControl Using just the input device doesn't work in the case that the input device is an invalid/None device
2015-08-11Check the default SR is available for a device when setting SR in EngineControlTim Mayberry
2015-08-11Remove unnecesary clearing of local variable in EngineControlTim Mayberry
2015-08-11Fix state restoration in EngineControl dialog for backends with driver selectionTim Mayberry
This also prevents backend_changed from being called more that once in the EngineControl ctor
2015-08-11Use the current backend device names to set active text in device dropdowns ↵Tim Mayberry
if available Compare device names with enumerated devices rather than assume an empty string has special meaning
2015-08-11Remove Unwinder instances in EngineControl::set_*_device_popdown_stringsTim Mayberry
These are not necessary since SignalBlocker will prevent signal emission
2015-08-11Compare the string returned by backend->driver_name() against driver names ↵Tim Mayberry
in EngineControl Don't assume an empty string has any meaning and compare string returned with enumerated drivers
2015-08-11Remove Unwinder instance from EngineControl::set_driver_popdown_stringsTim Mayberry
Not necessary now that signal emission is blocked via backend_changed()
2015-08-11Reimplement method using code extracted from EngineDialog::backend_changedTim Mayberry
EngineControl::set_driver_popdown_strings is now like the other set_*_popdown_strings methods in that it sets the driver strings and a default active entry and returns false if no drivers are available.
2015-08-11Remove previous fix attempt at restoring state for backends with driver ↵Tim Mayberry
selection The fix does not work properly anymore for the Portaudio backend and needs fixing in another manner. It will now be temporarily back to the broken state it was in before the "fix".
2015-08-11Use SignalBlocker class in EngineControl to block widget signal emissionTim Mayberry
This stops a whole lot of redundant signal emission and makes it much easier to think about what is going on. It also makes the dialog present much faster.
2015-08-11Extract part of EngineControl::backend_changed into ↵Tim Mayberry
EngineControl::update_midi_options
2015-08-11Move call to EngineControl::device_changed into EngineControl::list_devices ()Tim Mayberry
This prevents devices_changed from being called twice with backends that have separate input and output devices
2015-08-11Add debug output to blocking/unblocking signals in EngineControl dialogTim Mayberry
2015-08-11Add methods in EngineControl for blocking and unblocking signalsTim Mayberry
Only intended to be used with the nested SignalBlocker class