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

Endianness for float format? #29

Closed
bradisbell opened this issue Jun 16, 2022 · 1 comment
Closed

Endianness for float format? #29

bradisbell opened this issue Jun 16, 2022 · 1 comment

Comments

@bradisbell
Copy link

What is the endianness for float32 samples? Is it platform specific?

@bradisbell
Copy link
Author

From the RtAudio docs:

Audio data fed to/from an RtAudio stream is assumed to ALWAYS be in host byte order. The internal routines will automatically take care of any necessary byte-swapping between the host format and the soundcard. Thus, endian-ness is not a concern in the following format definitions.

So, if we're writing the audio data to files and what not, we need to determine the endianness where we're currently running.

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