Add support for 24bit #17
Replies: 1 comment 1 reply
-
Newbie to using flac, and thank you for pyflac. I need to decode flac streams that are encoded from 24-bit WAV format. I see in warnings from flac that this is a questionable format: When I try to decode the stream using
Reading nearby comments I'm informed that the lower-level libraries are always returning 32-bit ints. And indeed if the header says the data is 16-bit, then the code truncates the 32-bit values and returns an I tweaked the code to allow a header that says 24-bit by just returning the 32-bit array. Worked in my POC test bed -- the samples are preserved in the 32-bit array. So, my question is, would allowing the upcast from 24-bit to 32-bit be a reasonable way to support consuming 24-bit data? Should I post a PR with a proposed implementation? |
Beta Was this translation helpful? Give feedback.
-
Currently the package only supports
int16
data format.An
int24
type is not supported bynumpy
which makes this non-trivial with the current design.Beta Was this translation helpful? Give feedback.
All reactions