Skip to content

Commit

Permalink
Merge pull request #3546 from daschuer/denon_cue_stop
Browse files Browse the repository at this point in the history
Denon cue stop fix
  • Loading branch information
Be-ing authored Jan 10, 2021
2 parents e79f227 + b0ebf7b commit 6727e5e
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/engine/controls/cuecontrol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1090,21 +1090,16 @@ void CueControl::cueCDJ(double value) {
seekAbs(m_pCuePoint->get());
} else if (freely_playing || trackAt == TrackAt::End) {
// Jump to cue when playing or when at end position

// Just in case.
m_bPreviewing = false;
m_pPlay->set(0.0);

// Need to unlock before emitting any signals to prevent deadlock.
lock.unlock();

seekAbs(m_pCuePoint->get());
} else if (trackAt == TrackAt::Cue) {
// pause at cue point
// paused at cue point
m_bPreviewing = true;
m_pPlay->set(1.0);
} else {
// Pause not at cue point and not at end position
// Paused not at cue point and not at end position
cueSet(value);

// If quantize is enabled, jump to the cue point since it's not
Expand Down Expand Up @@ -1156,10 +1151,11 @@ void CueControl::cueDenon(double value) {
lock.unlock();
seekAbs(m_pCuePoint->get());
} else if (!playing && trackAt == TrackAt::Cue) {
// pause at cue point
// paused at cue point
m_bPreviewing = true;
m_pPlay->set(1.0);
} else {
m_pPlay->set(0.0);
// Need to unlock before emitting any signals to prevent deadlock.
lock.unlock();
seekAbs(m_pCuePoint->get());
Expand Down

0 comments on commit 6727e5e

Please sign in to comment.