summaryrefslogtreecommitdiff
path: root/libs/ardour/session_transport.cc
AgeCommit message (Collapse)Author
2020-04-18RAII collect processor-change signals6.0-rc1Robin Gareus
2020-04-10Revert "Another attempt at fixing multi-range export"Robin Gareus
This reverts commit c5332ddd0092c3a73315923a90c41024c0ad7758. Apparently this is not needed 4f3a95a1da is sufficient.
2020-04-09Another attempt at fixing multi-range exportRobin Gareus
See also * 4f3a95a1da9 * cfd95340b18 * 61e7f3176bf
2020-04-09Cont'd work on fixing export rangesRobin Gareus
This picks up where cfd95340b1 left off. The goal is to ensure that the butler has completed all PostTransportStop related tasks and won't meddle with transport after exporting has started. Previously this could happen, because realtime_stop() queues PostTransportStop and the butler is sommoned after every export process cycle. Since 61e7f3176bf the butler keeps calling non_realtime_stop() every time it is woken up, until TFSM comes around and unsets the flag in the process callback.
2020-04-02Emit Locate() in ::locate() even if we are not synced_to_engine()Johannes Mueller
This reverts 05c77db7739c (revert necessary due to 4637c49838a8) Since 4637c49838a8 we no longer emit Located() in ::backend_sync_callback(). Therefore we must emit Located() in ::locate() even if we are synced_to_engine(). Otherwise the playhead is not updated when synced_to_engine() in some circumstances.
2020-04-02Restart Transport FSM after x-run halt #7951Robin Gareus
2020-03-24remove unused variablePaul Davis
2020-03-23add disk i/o apparent speed output to non-RT locate callPaul Davis
2020-03-23add in timing for disk buffer reload after locate, to replace hard-coded ↵Paul Davis
0.05 seconds per track Leave debug output in place for now to get some numbers from any testers
2020-03-13add new API to TransportMasterManager to manage use of ↵Paul Davis
DiskReader::{inc,dec}_no_disk_output()
2020-03-10small adjustments to TransportMaster API to better accomodate the ↵Paul Davis
"ignore/accept commands" concept
2020-03-10do not reset default transport speed when stopping to prepare for a locatePaul Davis
2020-03-09Session::have_looped must only be true when we locate because we reached the ↵Paul Davis
loop end Locating the start of the loop range at transport start does not count as "have looped". This was preventing pre-roll when starting to loop, which in turn caused data/event loss because the start/end sample ranges would be incorrect inside process
2020-03-08Fix count-in and loop-as-mode metronome clicksRobin Gareus
2020-03-06Fix export alignment (#7916)Robin Gareus
Ardour's playback is aligned to master-out: "When the playback clock reads 01:00:00:00, the sample corresponding to 01:00:00:00 is audible at the speaker(s)" When exporting, and grabbing data from output ports, the signal is offset by the master-bus physical playback latency. This was compensated for, but lead to initial silence in the exported file. New approach is to start capturing export data during pre-roll, at the time when playback is written to the output buffers. To also shaves off a common offset to make this work with realtime export. Effectively this emulates processing with disconnected master-output port, while still keeping any latency of effects on the master-bus itself. Last but not least: jack updates latencies when freewheeling, (setting HW latency to zero). The callback arrives asynchronously some time after enabling freewheeling, but after Export Ports have been configured. Those callbacks are ignored.
2020-03-05continue with code simplification and add comment given 4a40ff9e53Paul Davis
2020-03-05transport stop resets default_transport_speedPaul Davis
This means that using the wheel in the GUI (or equivalent) ends its effect at transport stop
2020-02-27Add signals to indicate Punch/Loop constraintsRobin Gareus
This is in preparation for GUI sensitivity of Loop and Punch actions.
2020-02-27Prevent concurrent loop and punch recording (backend)Robin Gareus
This also prevents switching between punch-in/out record and looping without transport-stop.
2020-02-26Consolidate loop en/disable callsRobin Gareus
2020-02-24Zero x-run count after session-load and engine restartRobin Gareus
2020-02-21avoid double-locate call when locating-while-stoppedPaul Davis
Session::locate() used TransportFSM::stopped() to determine if realtime stop was required. But this would return false, since the motion state at that time is WaitingForLocate. So invert the test and use !TransportFSM::rolling
2020-02-20change transport API, session API, transportFSM API to move reverse ↵Paul Davis
management and motion state (partially) into TFSM
2020-02-19remove "destination_sample" from API for Session::set_transport_speed()Paul Davis
This was a leftover from changes made for Tracks Live, related to the concept of an auto-return preference. We don't use this anywhere in Ardour or Mixbus, and the concept should eventually be removed entirely.
2020-01-28fix previous commit, and another instance of the same (incorrect ↵Paul Davis
constructor) issue
2020-01-28fix assert-crash caused by not constructing a StopTransport event correctlyPaul Davis
2020-01-27Fix sending MMC Start/Stop messagesRobin Gareus
Ardour 5.x slave check was incorrectly ported to A6's TMM: In Ardour 5 the comparison tested for *not* MTC: ``` if (!dynamic_cast<MTC_Slave*>(_slave)) { ..send MMC.. } ``` Other MMC messages (Record, Locate) are sent unconditionally.
2020-01-26Fix Loop-length (no pre-roll on loop-iterations)Robin Gareus
2020-01-25remove debug outputPaul Davis
2020-01-23add more debug outputPaul Davis
2020-01-23use Session::locate_initiated(), appropriatelyPaul Davis
2020-01-23add Session::locate_initiated()Paul Davis
This differs from ::locate_pending() by covering either phase of a locate - declick or refill
2020-01-23after the butler has finished work, by definition there is nothing left to doPaul Davis
2020-01-23variable not used without debug modePaul Davis
2020-01-21do not clear any PostTransportWork flags in butler threadPaul Davis
doing this was causing the TFSM to get stuck in "WaitingForButler"
2020-01-20fix API and use of Session::force_locate()Paul Davis
Because of the addition of LocateTransportDisposition, this call was unconditionally forcing a roll during startup
2020-01-18rename DoTheRightThing to RollIfAppropriatePaul Davis
2020-01-18Session::request_locate() takes a tri-valued second argument for ↵Paul Davis
"roll-after-locate" This allows callers to defer logic about auto-play/current rolling state and more to TransportFSM where it can be cnentralized and is less ambiguous
2019-12-29add EMIT_SIGNAL commentPaul Davis
2019-12-29add Session::transport_stopped_or_stopping()Paul Davis
Session::TransportStateChanged notifies about transport stop before the stop is complete (i.e. at the start of the declick). Various other objects (notably control surfaces) connect to this signal and use it to modify their displayed state. We need a method that can tell them we are stopped (or stopping) even though we are not "fully" stopped yet. This is that method
2019-12-27fix JACK transport syncPaul Davis
key change: to sync with JACK always locate jack-position PLUS buffer-sized-rounded-worst_latency_preroll() ahead
2019-12-27add new Session method to return the worst_latency_preroll() value rounded ↵Paul Davis
up to the nearest buffer size
2019-12-11use process lock to lock out process() during playback buffer resizingPaul Davis
2019-12-10revert to single buffer for disk playback, and 5.x-style overwritePaul Davis
Also address issues with MIDI and also atomicity of _pending_overwrite
2019-12-07fix behavior when pressing l to loop (not in loop-is-mode) and the required ↵Paul Davis
stop-during locate cancels looping
2019-12-06Clear TransportAbort flag after stopRobin Gareus
This fixes an issue with unresponsive transport controls after an abort (e.g. post-export).
2019-12-05changes to use overwrite-buffers when loop is disabled or loop range changedPaul Davis
2019-11-23fix incorrect removal of autoloop event when loop bounds are changed while ↵Paul Davis
looping
2019-11-22redesign of declicking and fades around loop boundariesPaul Davis
2019-11-18Latency compensation is independent of transport-logicRobin Gareus
This also fixes a concurrency issue when when non-realtime-stop and graph-reorder or other rt-latency changes coincide.