update brrUtils

This commit is contained in:
tildearrow 2022-09-24 05:43:33 -05:00
parent 8eaddcf070
commit 78baff55e8
2 changed files with 21 additions and 13 deletions

View file

@ -32,19 +32,21 @@ extern "C" {
* @param buf input data.
* @param out output buffer. shall be at least 9*(len/16) shorts in size.
* @param len input length (should be a multiple of 16. if it isn't, the output will be padded).
* @return number of written samples.
*/
void brrEncode(short* buf, unsigned char* out, long len);
long brrEncode(short* buf, unsigned char* out, long len);
/**
* read len bytes from buf, decode BRR and output to out.
* @param buf input data.
* @param out output buffer. shall be at least 16*(len/9) shorts in size.
* @param len input length (shall be a multiple of 9).
* @return number of written bytes.
*/
void brrDecode(unsigned char* buf, short* out, long len);
long brrDecode(unsigned char* buf, short* out, long len);
#ifdef __cplusplus
}
#endif
#endif
#endif