#ifndef audiosaver_h
#define audiosaver_h

#include "inttypes.h"
#include "ka_acodec.h"
#include "ka_block.h"
#include "ka_error.h"

typedef struct audiosaver_s audiosaver_t;

audiosaver_t* audiosaver_new(ka_error_t* pErrorBlock);
void audiosaver_delete(audiosaver_t**);
int audiosaver_openoutfile(audiosaver_t*, ka_error_t* pErrorBlock, const ka_aparams_t*);
void audiosaver_writeoutfile(audiosaver_t*, ka_block_t* block);
int audiosaver_closeoutfile(audiosaver_t*);
int audiosaver_issaving(audiosaver_t*);

#endif
