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

add support for 64bit WAVE files #36

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

Rengati
Copy link

@Rengati Rengati commented Nov 24, 2020

No description provided.

@Rengati
Copy link
Author

Rengati commented Nov 24, 2020

Hi,
Thanks for this librairy, I have added a support for 64bit WAVE files for my personnal use and I think I could be useful to other people.
If the pull request is not in the correct format please let me know and I will make the necessary changes.

Rengati added 4 commits November 24, 2020 11:21
IEEE format preferred for saving 64bit WAVE files
static cast necessary if T is float
the reinterpret_cast<int32_t&> will return the expected result only with a 32bit variable, so if T is double (64bit) it will not generate the right int32_t
@adamstark
Copy link
Owner

Hi there, thanks for this pull request. It looks good - am I right in thinking that IEEEFloat can refer to either 32-bit or 64-bit encoding? Or is there a separate encoding flag for 64-bit floats?

I will also need to write some unit tests for this too, but I'll try and do that soon :)

@Rengati
Copy link
Author

Rengati commented Jan 25, 2021

Hi,
Yes you are rigth, IEEEfloat works the same way for 32-bit and 64-bit (cf. https://en.wikipedia.org/wiki/IEEE_754#Basic_and_interchange_formats)

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.

None yet

2 participants