|
coastline 0.0.4
|
Decode imported FLAC tracks into stereo PCM without discarding block remainders. More...
#include <flactrack.h>
Public Member Functions | |
| 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. | |
Decode imported FLAC tracks into stereo PCM without discarding block remainders.
| bool coastline::FlacTrack::Open | ( | const std::filesystem::path & | path | ) |
Open an imported track, replacing any previous decoder and pending samples.
Mono samples duplicate into both output channels; multichannel input uses its first two.
| path | The FLAC file to decode. |
| bool coastline::FlacTrack::Decode | ( | std::vector< std::int16_t > & | output, |
| std::size_t | frames ) |
Append at most the requested stereo frames without discarding unused block samples.
| output | Receives interleaved signed 16-bit left and right samples. |
| frames | The maximum number of stereo frames to append. |