remove unused PostTransportDuration and enumeration-writing for Adjust(Playback|Capture)Buffering

This commit is contained in:
Paul Davis 2019-09-22 11:49:19 -06:00
parent fcc7f335a1
commit 9f8b8d192b
3 changed files with 3 additions and 6 deletions

View File

@ -1122,7 +1122,7 @@ public:
enum PostTransportWork {
PostTransportStop = 0x1,
PostTransportDuration = 0x2,
/* PostTransportDuration */
PostTransportLocate = 0x4,
PostTransportRoll = 0x8,
PostTransportAbort = 0x10,

View File

@ -467,7 +467,6 @@ setup_enum_writer ()
REGISTER (_MIDI_MTC_Status);
REGISTER_CLASS_ENUM (Session, PostTransportStop);
REGISTER_CLASS_ENUM (Session, PostTransportDuration);
REGISTER_CLASS_ENUM (Session, PostTransportLocate);
REGISTER_CLASS_ENUM (Session, PostTransportRoll);
REGISTER_CLASS_ENUM (Session, PostTransportAbort);
@ -475,6 +474,8 @@ setup_enum_writer ()
REGISTER_CLASS_ENUM (Session, PostTransportAudition);
REGISTER_CLASS_ENUM (Session, PostTransportReverse);
REGISTER_CLASS_ENUM (Session, PostTransportClearSubstate);
REGISTER_CLASS_ENUM (Session, PostTransportAdjustPlaybackBuffering);
REGISTER_CLASS_ENUM (Session, PostTransportAdjustCaptureBuffering);
REGISTER_BITS (_Session_PostTransportWork);
REGISTER_CLASS_ENUM (Session, Clean);

View File

@ -116,10 +116,6 @@ Session::realtime_stop (bool abort, bool clear_state)
DEBUG_TRACE (DEBUG::Transport, string_compose ("stop complete, auto-return scheduled for return to %1\n", _requested_return_sample));
/* the duration change is not guaranteed to have happened, but is likely */
todo = PostTransportWork (todo | PostTransportDuration);
if (abort) {
todo = PostTransportWork (todo | PostTransportAbort);
}