Core Audio Format Always Returns 32 bits per sample


#1

When using the CAF reader, it always reports back 32 bits per sample (hardcoded to do so). Can this be changed to report back the actual bit depth of the file (the caf file I am reading is 24 bit lpcm)?


#2

I think it gets automatically converted to 32-bit float when reading which is what this number represents?


#3

I realize that, but need the original bit depth.


#4

Did you try meta data?
CoreAudioFormatMetatdata::AudioDescriptionChunk

I haven’t tested it or check if it’s private/protected from you. but you can basically provide it an InputStream.