all: remove unused functions from includes

Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
This commit is contained in:
Mahyar Koshkouei
2023-07-08 13:06:14 +01:00
parent ce654bd115
commit 0e79e61255
13 changed files with 70 additions and 205 deletions

View File

@@ -8,17 +8,46 @@
struct decoder_fn
{
/**
* Set decoder parameters.
* \param decoder Structure to store parameters.
* \return 0 on success, else failure.
*/
int (* init)(const char* file);
/**
* Get sampling rate of file.
* \return Sampling rate.
*/
uint32_t (* rate)(void);
/**
* Get number of channels of file.
* \return Number of channels for opened file.
*/
uint8_t (* channels)(void);
/**
* Size of output buffer used in decode().
*/
size_t buffSize;
/**
* Fill buffer with decoded samples.
* \param buffer Output buffer to fill.
* \return Samples read for each channel.
*/
uint64_t (* decode)(void*);
/**
* Free codec resources.
*/
void (* exit)(void);
};
struct playbackInfo_t
{
char* file;
char* file;
struct errInfo_t* errInfo;
};