8#include <FLAC/stream_decoder.h>
35 struct DecoderDeleter {
37 void operator()(FLAC__StreamDecoder *decoder)
const;
39 static FLAC__StreamDecoderWriteStatus Write(
const FLAC__StreamDecoder *,
40 const FLAC__Frame *frame,
41 const FLAC__int32 *
const buffer[],
43 static void Error(
const FLAC__StreamDecoder *, FLAC__StreamDecoderErrorStatus status,
void *);
Decode imported FLAC tracks into stereo PCM without discarding block remainders.
Definition flactrack.h:13
bool Open(const std::filesystem::path &path)
Open an imported track, replacing any previous decoder and pending samples.
bool Decode(std::vector< std::int16_t > &output, std::size_t frames)
Append at most the requested stereo frames without discarding unused block samples.
Definition assetimport.h:11