mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
add explanatory comments regarding SetLoop vs. AutoLoop SessionEvents
This commit is contained in:
parent
c82ca66fcc
commit
2ac934c1ae
1 changed files with 8 additions and 0 deletions
|
|
@ -860,10 +860,18 @@ Session::process_event (SessionEvent* ev)
|
||||||
|
|
||||||
switch (ev->type) {
|
switch (ev->type) {
|
||||||
case SessionEvent::SetLoop:
|
case SessionEvent::SetLoop:
|
||||||
|
/* this is the event sent by a UI to define whether or not we
|
||||||
|
use loop range playback or not.
|
||||||
|
*/
|
||||||
set_play_loop (ev->yes_or_no, true);
|
set_play_loop (ev->yes_or_no, true);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SessionEvent::AutoLoop:
|
case SessionEvent::AutoLoop:
|
||||||
|
/* this is the event event created by the Session that marks
|
||||||
|
the end of the loop range and if we're loop playing,
|
||||||
|
triggers a special kind of locate back to the start of the
|
||||||
|
loop range.
|
||||||
|
*/
|
||||||
if (play_loop) {
|
if (play_loop) {
|
||||||
/* roll after locate, do not flush, set "for loop end" true
|
/* roll after locate, do not flush, set "for loop end" true
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue