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

Specify endianess of pcm samples #852

Open
padenot opened this issue Nov 26, 2024 · 2 comments
Open

Specify endianess of pcm samples #852

padenot opened this issue Nov 26, 2024 · 2 comments

Comments

@padenot
Copy link
Collaborator

padenot commented Nov 26, 2024

In the wild, PCM can be in little endian or big endian. Because most of the time they come from RIFF files and RIFF files are little endian, implementations (certainly Firefox, probably Chrome?) have assumed little endian. RIFX files exist but are somewhat rare, that would be big endian RIFF files.

I propose that we standardize Web Codecs facilities to be little endian. We can always register new pcm types if a big endian ends up being needed.

@chrisguttandin
Copy link
Contributor

I think AIFF files are also a notable example for files that contain big endian data by default. But they can also contain little endian encoded data.

@padenot
Copy link
Collaborator Author

padenot commented Nov 26, 2024

That's correct.

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

2 participants