[flac-dev] Max Sample Rate FLAC
Graham Weatherup
gw at sa-instrumentation.com
Thu Jan 15 04:00:08 PST 2015
Hi,
I would like to clear something up about Sample Rate, If the Frame header can look to the metadata block streaminfo for sample rate what (if anything limits it to 655350Hz)? Can all frame headers not just point to streaminfo and it be specified in streaminfo as all 1s ie 2^20-1 = 1,048,575Hz? It would be really good to be able to use 1MHz and beyond for some of my/our work. Does anything currently support this?
Regards
Graham
Extracts from https://xiph.org/flac/format.html
METADATA_BLOCK_STREAMINFO
<20> Sample rate in Hz. Though 20 bits are available, the maximum sample rate is limited by the structure of frame headers to 655350Hz. Also, a value of 0 is invalid.
FRAME_HEADER
0000 : get from STREAMINFO metadata block
:
:
1100 : get 8 bit sample rate (in kHz) from end of header
1101 : get 16 bit sample rate (in Hz) from end of header
1110 : get 16 bit sample rate (in tens of Hz) from end of header
1111 : invalid, to prevent sync-fooling string of 1s
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/flac-dev/attachments/20150115/9b9124e9/attachment.htm
More information about the flac-dev
mailing list