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

Floating point input samples and libsndfile (not a bug) #95

Open
eblanca opened this issue Nov 29, 2019 · 0 comments
Open

Floating point input samples and libsndfile (not a bug) #95

eblanca opened this issue Nov 29, 2019 · 0 comments

Comments

@eblanca
Copy link
Contributor

eblanca commented Nov 29, 2019

Just for you to know (can't remember whether I mentioned this before).
When libsndfile opens a floating point input file, its default behaviour is to scan the whole file and set an amplitude value so the input peak will be mapped to 1.0
This may result in an amplification (most of the cases) or an attenuation of the input signal, that is the input data get modified. I really think this shouldn't happen and I filed Erik a pull request here some time ago, in a way calling applications can set an amplitude value (most likely to be 1.0) so the input signal WON'T be changed.
This has not been merged yet, so as of today any time one wants to encode some content as floating point values, then this is what will happen.
Does this deserve a mention into README ?

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

No branches or pull requests

1 participant