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

VinylControlControl: Use mixxx::audio::FramePos internally #4079

Merged
merged 2 commits into from
Jul 9, 2021

Conversation

Holzhaus
Copy link
Member

@Holzhaus Holzhaus commented Jul 7, 2021

No description provided.

if (!trackEndPosition.isValid()) {
return;
}
const auto newPlayPos = trackEndPosition * fractionalPos;
Copy link
Contributor

Choose a reason for hiding this comment

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

newPlayPos = kStartFramePos + (trackEndPosition - kStartFramePos) * fractionalPos;?

I suppose there are much more spots where positions and offsets/distances are used confused. Those could only be detected and fixed by introducing a distinct type for FrameDiff_t.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@uklotzde uklotzde left a comment

Choose a reason for hiding this comment

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

LGTM

@uklotzde uklotzde merged commit 9be7c5a into mixxxdj:main Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

2 participants