Skip to content

fix for BPM becoming Inf (https://bugs.launchpad.net/mixxx/+bug/1631393)#1206

Merged
daschuer merged 1 commit intomixxxdj:masterfrom
meschi:master
Jul 8, 2017
Merged

fix for BPM becoming Inf (https://bugs.launchpad.net/mixxx/+bug/1631393)#1206
daschuer merged 1 commit intomixxxdj:masterfrom
meschi:master

Conversation

@meschi
Copy link
Copy Markdown
Contributor

@meschi meschi commented Mar 5, 2017

m_pRateRange->get() is zero and not checked.
This results in division through zero. This change checks if the rateRange is zero and sets the pitch change accordingly.

This PR fixes a filed bug for the 2.1.0 release.
https://bugs.launchpad.net/mixxx/+bug/1631393

I don't know why the range is zero. On a fresh startup the config file is created with the value 8, but the value is not used on the first start. With this fix the value is read on the second startup after being shut down gracefully. Without the fix neither the config file not the analyzed songs are written to disk. I think fixing the loading of th config-file belongs to another pull request.

raterange was 0 and unchecked, resulted in division through zero.
@daschuer
Copy link
Copy Markdown
Member

daschuer commented Mar 6, 2017

Thank you for the pull request. It looks good to me.
Before merge, we need your permission. Please sign
https://docs.google.com/a/mixxx.org/spreadsheet/viewform?formkey=dEpYN2NkVEFnWWQzbkFfM0ZYYUZ5X2c6MQ
and comment here when done.

@daschuer
Copy link
Copy Markdown
Member

@meschi did you sign the agreement? Than I can merge this.

@Be-ing
Copy link
Copy Markdown
Contributor

Be-ing commented Apr 6, 2017

Hi @meschi, have you signed the contributor agreement? It just gives us permission to distribute your code under the GPL v2 with an exception to also publish it in the Mac App Store.

@Be-ing
Copy link
Copy Markdown
Contributor

Be-ing commented Apr 6, 2017

The larger issue of the rate range being set to 0 with a fresh config file is being addressed in PR #1230.

@meschi
Copy link
Copy Markdown
Contributor Author

meschi commented May 31, 2017

Sorry it took a while. Signed the contributors agreement (Kilian Feess).

@daschuer
Copy link
Copy Markdown
Member

daschuer commented Jul 8, 2017

Thank you!

@daschuer daschuer merged commit a40d4f2 into mixxxdj:master Jul 8, 2017
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.

3 participants