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 EngineDelay and EngineFilterDelay modulo calculation documentation #4848

Merged

Conversation

davidchocholaty
Copy link
Contributor

Adds documentation for the modulo calculation in the EngineDelay::process and EngineFilterDelay::process.

The mentioned documentation explains the usage of the addition. The added value is the size of the delay buffer, which is used for the modulo operator as well (as a divisor for division). From a mathematical point of view, this addition can be removed.

Anyway, from the cpp point of view, the delay buffer size addition is necessary based on an otherwise negative result using the cpp modulo operator.

This commit adds documentation for the modulo calculation
in the EngineDelay::process. The mentioned documentation explains
the usage of the addition. The added value is the size
of the delay buffer, which is used for the modulo operator as well
(as a divisor for division). From a mathematical point of view,
this addition can be removed. Anyway, from the cpp point of view,
the delay buffer size addition is necessary based on an otherwise
negative result using the cpp modulo operator.
This commit adds documentation for the modulo calculation
in the EngineFilterDelay::process. The mentioned documentation explains
the usage of the addition. The added value is the size
of the delay buffer, which is used for the modulo operator as well
(as a divisor for division). From a mathematical point of view,
this addition can be removed. Anyway, from the cpp point of view,
the delay buffer size addition is necessary based on an otherwise
negative result using the cpp modulo operator.
Copy link
Member

@Swiftb0y Swiftb0y left a comment

Choose a reason for hiding this comment

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

Thank you. This PR was probably redundant, I was just too stupid to recognize this fact. But since I requested the PR and you already did the work, I might as well merge it.

@Swiftb0y Swiftb0y merged commit 8860357 into mixxxdj:main Jul 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants