/** * Set decoder parameters for flac. * * \param decoder Structure to store parameters. */ void setFlac(struct decoder_fn* decoder); /** * Initialise Flac decoder. * * \param file Location of flac file to play. * \return 0 on success, else failure. */ int initFlac(const char* file); /** * Get sampling rate of Flac file. * * \return Sampling rate. */ uint32_t rateFlac(void); /** * Get number of channels of Flac file. * * \return Number of channels for opened file. */ uint8_t channelFlac(void); /** * Decode part of open Flac file. * * \param buffer Decoded output. * \return Samples read for each channel. */ uint64_t decodeFlac(void* buffer); /** * Free Flac decoder. */ void exitFlac(void);