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

implement 24 bit sample support for fluid_voice_optimize_sample() #329

Merged
merged 1 commit into from Jan 24, 2018

Conversation

derselbst
Copy link
Member

In addition to #301, fluid_voice_optimize_sample() should calculate the noise floor using 24 bit samples as well. Otherwise very quiet voices could be turned off too early.

@mawe42 Do you agree with FLUID_NOISE_FLOOR?

@derselbst derselbst added the bug label Jan 19, 2018
@derselbst derselbst added this to the 2.0 milestone Jan 19, 2018
@derselbst derselbst requested a review from mawe42 January 19, 2018 16:19
*/
#define FLUID_NOISE_FLOOR 0.00003
#define FLUID_NOISE_FLOOR 2.e-7


Copy link
Collaborator

Choose a reason for hiding this comment

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

On 24 bits the noise is -(144 - 6) = -138 dB. So noise floor amplitude = is 10^(-138/20) = 1.26e-7. Saying that we could keep 2.e-7. :).

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, thanks :)

@derselbst derselbst merged commit 4a655de into master Jan 24, 2018
@derselbst derselbst deleted the voice-opt24 branch January 24, 2018 17:48
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.

None yet

2 participants