update brrUtils (again)

This commit is contained in:
tildearrow 2022-09-24 16:44:47 -05:00
parent 3bfdb35578
commit ddfdeffc99
2 changed files with 79 additions and 4 deletions

View file

@ -32,9 +32,10 @@ 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).
* @param loopStart beginning of loop area (may be 0 for no loop). this is used to ensure the respective block has no filter in order to loop properly.
* @return number of written samples.
*/
long brrEncode(short* buf, unsigned char* out, long len);
long brrEncode(short* buf, unsigned char* out, long len, long loopStart);
/**
* read len bytes from buf, decode BRR and output to out.