Add seek() function to FLACDecoder, to allow repositioning of the file pointer at a given sample position. The current implementation will seek to the frame containing the requested absolute sample offset from the start of the file, using the SeekTable in the FLAC metadata where available.
After calling seek(), the client calls readFrame() / decodeFrame() as normal to retrieve the decoded audio data for the frame which contains the requested sample position.
Add seek() function to FLACDecoder, to allow repositioning of the file pointer at a given sample position. The current implementation will seek to the frame containing the requested absolute sample offset from the start of the file, using the SeekTable in the FLAC metadata where available.
After calling seek(), the client calls readFrame() / decodeFrame() as normal to retrieve the decoded audio data for the frame which contains the requested sample position.