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

Request: Read 24Bit Wav Files #146

Open
ChrEnde opened this issue Jan 27, 2022 · 1 comment
Open

Request: Read 24Bit Wav Files #146

ChrEnde opened this issue Jan 27, 2022 · 1 comment

Comments

@ChrEnde
Copy link

ChrEnde commented Jan 27, 2022

Hello,
this package looks really useful to me as it is the only one I could find that allows me to edit metadata of broadcast wave files. Unfortunately, it seems not possible to read files with a 24bit amplitude resolution (it causes "TypeError: data type '<i3' not understood" at line 319 in chunks.py). If there's some easy way to fix this I would really appreciate that. I'm sorry if I misunderstood something.

@steelegbr
Copy link
Owner

steelegbr commented Jan 28, 2022

Ah, I think I see what's happening here. 24 bits is 3 bytes - an unusual size to read in and doesn't align to standard "word" boundaries. Numpy is understandably throwing a wobbly over it.

Looks like it'll need a bit of thought. Not an impossible feat but not a five minute special either.

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