Skip to content

Commit

Permalink
Update autodjprocessor.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlmorris committed Sep 4, 2024
1 parent abcd88e commit e0c9c71
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/library/autodj/autodjprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,17 @@ AutoDJProcessor::AutoDJProcessor(
m_eState(ADJ_DISABLED),
m_transitionProgress(0.0),
m_transitionTime(kTransitionPreferenceDefault) {
m_pAutoDJTableModel = new PlaylistTableModel(this, pTrackCollectionManager,
"mixxx.db.model.autodj");
m_pAutoDJTableModel = new PlaylistTableModel(
this, pTrackCollectionManager, "mixxx.db.model.autodj");
m_pAutoDJTableModel->selectPlaylist(iAutoDJPlaylistId);
m_pAutoDJTableModel->select();

m_pShufflePlaylist = new ControlPushButton(
ConfigKey("[AutoDJ]", "shuffle_playlist"));
connect(m_pShufflePlaylist, &ControlPushButton::valueChanged,
this, &AutoDJProcessor::controlShuffle);
connect(m_pShufflePlaylist,
&ControlPushButton::valueChanged,
this,
&AutoDJProcessor::controlShuffle);

m_pSkipNext = new ControlPushButton(
ConfigKey("[AutoDJ]", "skip_next"));
Expand Down Expand Up @@ -874,7 +876,10 @@ void AutoDJProcessor::playerPositionChanged(DeckAttributes* pAttributes,
// the transitions. If there has been a seek beyond endPos, end
// the transition immediately.
if ((m_crossfaderStartCenter) &&
(transitionProgress <= ((thisDeck->fadeEndPos - thisDeck->fadeBeginPos)/2))) {
(transitionProgress <=
((thisDeck->fadeEndPos -
thisDeck->fadeBeginPos) /
2))) {
// We want the cross fader to remain in the middle.
setCrossfader(0.0);
} else {
Expand Down

0 comments on commit e0c9c71

Please sign in to comment.