I need to get the sample rate and number of samples in a flac file.
I think the number of samples is stored in bytes 22-25 but I cannot locate the sample rate, usually 44100 or AC 44.
Anyone know ? I expect it's in METADATA_BLOCK_STREAMINFO but just where or what format I can't figure.
+ Reply to Thread
Results 1 to 4 of 4
I've been reading that link for a few hours but not getting quite what I need from it!
The sample rate doesn't change afaik. If I can locate/read it from STREAMINFO I can run some tests and see how reliable my results are.
Johns I want to use VBA from inside Access, I'm already running an external program and getting what's needed but every time a DOS window opens. I'm trying to avoid that. If I can read the bytes in the file myself I won't need to shell to anything. Or, do you know if mpc-hc would let me somehow?