summaryrefslogtreecommitdiff
path: root/libs/ardour/audioengine.cc
AgeCommit message (Collapse)Author
2018-09-18new transport slave/master implementation, libs/ editionPaul Davis
2018-04-30NO-OP: a ToDo comment for discussionRobin Gareus
2017-10-30Fix fade-out at quit.Robin Gareus
2017-10-30Parallel execution of cycle-start/endRobin Gareus
2017-10-29Move vari-speed into backend (resample ports)Robin Gareus
Previously Ardour used a /local/ per track vari-speed mechanism. Now that the disk-reader is a latency-compensated processor, the speed of each disk-reader would need to be maintained locally, offset by each disk-reader's output latency. Furthermore each disk-reader may produce a different number of samples, depending on its global alignment. This commit introduces port-data resampling directly at the engine-level: Up/down-sample all input ports at the beginning, and down/up-sample output port-data using the inverse ratio at the end of the session's process cycle. The session itself is unaware of the speed-change, and only needs to handle transport speeds {-1, 0, +1}. This also allows for aligned cue-monitoring and vari-speed recording, and also pitch-shifts synthesized MIDI along.
2017-09-18globally change all use of "frame" to refer to audio into "sample".Paul Davis
Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode and video in order to keep the legible
2017-04-27NO-OP: whitespaceRobin Gareus
2017-04-27Fix flow for measuring latencies of live backendsRobin Gareus
2017-04-27Fix flow for latency measurements that needs an engine stop.Robin Gareus
Make AudioEngine::prepare_for_latency_measurement() idempotent. There are multple calls (when switching to the measurement page and every time a measurement is preformed). Also the Stopped() signal is important for the Dialog state regardless if the engine was stopped for latency or not.
2016-12-03Fix warningsDavid Robillard
2016-11-26Add [hidden] option to list "Dummy" backend with optmized bundlesRobin Gareus
2016-10-20infrastructure for save/restore of MIDI port user-provided informationPaul Davis
2016-10-19NOOP: whitespacing tweakPaul Davis
2016-10-17convert cerr<< to DEBUG_TRACEPaul Davis
2016-10-13new scheme for managing port deletionPaul Davis
shared_ptr<Port> now uses a deleter functor which pushes Port* to a lock-free FIFO so that the Port is always deleted (and thus unregistered with the PortEngine/backend) in a safe context w.r.t. various callbacks in the host. Currently the auto_connect_thread in Session has been tasked with doing these deletions.
2016-10-11Hide Dummy backend from optimized release buildsRobin Gareus
Prepare to bundle session-utils with releases. Session-utils use libardour which needs an Engine. "Dummy" is the only engine that always works
2016-09-13Fixes 7004 - Ardour crash on Just Quit when AudioEngine is stopped. ↵Nathan Stewart
AudioEngine::stop() if running() is not true and _backend->stop() is true, mutex was being unlocked without being locked.
2016-07-14enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.hPaul Davis
2016-05-25fix timecode update after locate.Robin Gareus
Various session rt-events set "_send_timecode_update" to true, but at the same time queue post-transport-work. The timecode-update is generated, but due to pending transport work session->silent() is true and the timecode was never sent.
2016-04-24plug some memory leaks in libardourRobin Gareus
2016-01-14ensure that each and every audioengine-related thread has a unique namePaul Davis
2015-12-28redesign cross-thread registration/signalling systemPaul Davis
This new design will work even when threads that need to receive messages from RT threads are created *after* the RT threads. The existing design would fail because the RT thread(s) would never be known the later created threads, and so signals emitted by the RT thread and causing call_slot() in the receiver would end up being enqueued using a lock-protected list. The new design ensures that communication always uses a lock-free FIFO instead
2015-12-12correct name of Midi-UI thread memory-pool and request-queueRobin Gareus
2015-12-09fix/workaround OSX "No Memory Pool"Robin Gareus
fixes issue on MacBookPro11,1 OSX 10.10 * Coreaudio: internal speaker + internal Mic * start recording * plug-in headphone * stop recording -> crash process_callback -> [..] stop_transport -> no RT memory pool for realtime event.
2015-12-04update engine to allow latency measurement w/o restart.Robin Gareus
2015-12-04fix thinko in engine latency stateRobin Gareus
(skip Halted signal when stopped for latency)
2015-10-06Initialize AudioEngine::last_backend_error() to the default error stringTim Mayberry
Currently the last backend error string is only set when calling AudioBackend::start. Errors that occur when calling other AudioBackend methods like AudioBackend::set_buffer_size do not set the last backend error string. So until all the required AudioBackend methods return an ErrorCode and last_backend_error() can be removed just set it to a default string. Until all errors that occur are correctly indicated by returning an error code there will still be situations where last_backend_error() is not indicative of the true error. For instance AudioEngine::start is called and it fails but returns a valid error code so last_backend_error() is set, then some other engine/backend method is called that fails and as last_backend_error is not set the GUI will display the incorrect error message.
2015-10-06Show DSP/CPU load of 0.0% when AudioEngine isn't runningTim Mayberry
2015-10-05NOOP, remove trailing tabs/whitespace.Robin Gareus
2015-10-04globally remove all trailing whitespace from ardour code base.Paul Davis
Paul Davis was responsible for introducing almost all of this.
2015-10-02remove debug outputPaul Davis
2015-10-02the return of the 1 second fade out at session closePaul Davis
2015-10-01Reinterpret the return value of AudioBackend::start as AudioBackend::ErrorCodeTim Mayberry
This will allow backends to return a more meaningful error message. Eventually an error code could be returned by AudioEngine::start and the GUI can then use AudioBackend::get_error_string to convert the error into a translated error message directly, or it may be desirable to define its own error messages. The reasons for not doing that right now is that this is a workable solution with the least change required.
2015-08-28synchronous shutdown of process graph.Robin Gareus
2015-08-11fix deadlock at exit on SMP systemsRobin Gareus
graph process-threads won't terminate properly while active.
2015-06-29Fixed incomplete merge for audioengine.ccGZharun
[To be reviewed by] Paul Davis
2015-06-29increase event pool for backend reset thread (somewhat unnecessarily, but ↵Paul Davis
lets keep Kyiv happy)
2015-06-29AudioEngine tweaks from Tracks, related to stopping audioengine and haltingPaul Davis
2015-06-29initial incorporation of Tracks' automatic reconnect features, based on ↵Paul Davis
current Tracks code
2015-06-29[Summary] Added possibility to identify IO thread which does not have ↵GZharun
required resources initialized during process callback handling Conflicts: libs/ardour/ardour/audioengine.h libs/backends/wavesaudio/waves_audiobackend.cc libs/pbd/pbd/pool.h
2015-05-04fix thinko in 2e4428bRobin Gareus
perspective of Ardour: signal sinks are outputs
2015-05-03no more noise during startup.Robin Gareus
2015-05-02professionalize peak-metersRobin Gareus
The peak meter needs to withstand various test-signals without visual jitter (in particular 1kHz sine) regardless of settings (period-size, sample-rate, custom fall-off). This needs to be done in sync (and not by a random non-rt ‘smoothing’ thread). On the downside this voids the ‘visual smoothing’ particularly with large buffersizes - but then again exactly this “always fall-off no matter what [the next real data will be]” is the problem. One the upside, there’s one less high-frequency (100Hz) thread (Yay!) PS. it probably never worked on windows, anyway. Only peak-meters are affected by his change. K-meters, IEC I/II and VU were never visually smoothed.
2015-04-30don’t count silent [x]runs if there’s no session.Robin Gareus
2015-04-29emit an xrun if the process_lock is takenRobin Gareus
2015-04-26Fix crash when switching backends.Robin Gareus
cycle_end() can write to invalid buffers.
2015-04-22Initial Gain Coefficient tweaksBen Loftis
1) Disambiguate 1.0 to GAIN_COEFF_UNITY, and 0.0 to GAIN_COEFF_ZERO 2) Add GAIN_COEFF_SMALL which replaces SMALL_SIGNAL (-140dB) 3) GAIN_COEFF_SMALL can used to avoid interpolating towards -inf on a db scale 4) GAIN_COEFF_SMALL is used to detect very small (denormal?) gains and memset to zero
2015-04-05fix ambiguous use of pow()Paul Davis
2015-04-05bump default silent-after-seconds duration to 10 minutesPaul Davis
2015-04-05add libardour code for going completely silent after a compile-time defined ↵Paul Davis
number of seconds