readFrameHeader
public static FlacFrameInfo readFrameHeader(BitStreamReader bitStreamReader,
FlacStreamInfo streamInfo,
boolean variableBlock)
throws java.io.IOException
Reads a frame header. At this point the first two bytes of the frame have actually been read during the frame sync
scanning already. This means that this method expects there to be no EOF in the middle of the header. The frame
information must match that of the stream, as changing sample rates, channel counts and sample sizes are not
supported.
- Parameters:
bitStreamReader - Bit stream reader for input
streamInfo - Information about the stream from metadata headers
variableBlock - If this is a variable block header. This information was included in the frame sync bytes
consumed before calling this method.
- Returns:
- The frame information.
- Throws:
java.io.IOException - On read error.