Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fix) PositionScratchController: fix loop wrap-around case #14379

Merged
merged 1 commit into from
Feb 22, 2025

Conversation

ronso0
Copy link
Member

@ronso0 ronso0 commented Feb 20, 2025

No description provided.

Comment on lines 210 to 211
if (loopLength < 0) {
loopLength *= -1;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not necessary, the trigger / target returned by LoopingControl::nextTrigger are already swapped in case of reverse.

@ronso0 ronso0 force-pushed the wave-scratch-wraparound-fix branch from 0a2f22a to 0fae9fa Compare February 20, 2025 23:48
@ronso0 ronso0 force-pushed the wave-scratch-wraparound-fix branch from 0fae9fa to bde8400 Compare February 20, 2025 23:48
Copy link
Member

@daschuer daschuer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed code is good code :-) confirmed that it works like a charm. Thank you.

@daschuer daschuer merged commit daf1683 into mixxxdj:2.5 Feb 22, 2025
13 checks passed
@ronso0
Copy link
Member Author

ronso0 commented Feb 22, 2025

Great, thanks for your review!

@ronso0 ronso0 deleted the wave-scratch-wraparound-fix branch February 22, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants