public int calcLength ( ) { int bits = STREAMINFO_MIN_BLOCK_SIZE_LEN + STREAMINFO_MAX_BLOCK_SIZE_LEN + STREAMINFO_MIN_FRAME_SIZE_LEN + STREAMINFO_MAX_FRAME_SIZE_LEN + STREAMINFO_SAMPLE_RATE_LEN + STREAMINFO_CHANNELS_LEN + STREAMINFO_BITS_PER_SAMPLE_LEN + STREAMINFO_TOTAL_SAMPLES_LEN + ( md5sum . length * 8 ) ; return ( ( bits + 7 ) / 8 ) ; }
Calculate the metadata block size .