Files
mice-3ds/include/flac.h
Mahyar Koshkouei a09e44a462 all: move headers to include folder
Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
2023-07-08 11:49:04 +01:00

52 lines
904 B
C

#include "playback.h"
/**
* 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);
/**
* Checks if the input file is Flac
*
* \param in Input file.
* \return 0 if Flac file, else not or failure.
*/
int isFlac(const char* in);