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 some rounding issues due to double promotion #1286

Merged
merged 1 commit into from
Dec 10, 2023
Merged

Conversation

derselbst
Copy link
Member

@derselbst derselbst commented Nov 24, 2023

fluid_settings_register_num() takes double arguments. Previously values were passed as float literals. Implicit promotion of e.g. 0.1f would set 0.10000000149011612 to be the minimum chorus speed. If a user tries to set the chorus speed to 0.1, it would mistakenly fail. This PR fixes this issue.

Fixes #1284

Copy link

sonarcloud bot commented Nov 24, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@derselbst derselbst merged commit 0fd8aac into master Dec 10, 2023
70 of 75 checks passed
@derselbst derselbst deleted the issue1284 branch December 10, 2023 15:44
@derselbst derselbst added this to the 2.3 milestone Dec 10, 2023
DominusExult added a commit to DominusExult/fluidsynth-sans-glib that referenced this pull request Mar 6, 2024
* commit '683270db64302e59d26b9610514af1cfe0a80493':
  Bump to 2.3.5
  Fix libinstpatch and sndfile not being discovered on Windows (FluidSynth#1299)
  Update FreeBSD CI: Drop 12.4 and add 14.0
  Fix some rounding issues due to double promotion (FluidSynth#1286)
  Bump to 2.3.4
  Fix player termination after stopping and restarting (FluidSynth#1273)
  fix for issue FluidSynth#1268: Pipewire's Jack implementation not found (FluidSynth#1269)
  Fix issue with CMake Xcode generator (FluidSynth#1266)
  Refurbish CI (FluidSynth#1267)
  Fallback to IPv4 when creating socket if IPv6 is not available (FluidSynth#1208) (FluidSynth#1265)
  Turn off pending notes and issue a warning (FluidSynth#1264)
  Fix incorrect way of turning CMAKE_INSTALL_LIBDIR absolute (FluidSynth#1261)
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.

set synth.chorus.speed minumum is reported as out of range
1 participant