Improved error handling, and implemented celt_strerror()

This commit is contained in:
Jean-Marc Valin 2009-10-16 07:30:14 -04:00
parent 80ed147663
commit ece94a0475
4 changed files with 56 additions and 3 deletions

View file

@ -69,6 +69,8 @@ extern "C" {
#define CELT_UNIMPLEMENTED -5
/** An encoder or decoder structure is invalid or already freed */
#define CELT_INVALID_STATE -6
/** Memory allocation has failed */
#define CELT_ALLOC_FAIL -6
/* Requests */
#define CELT_GET_MODE_REQUEST 1
@ -265,6 +267,8 @@ EXPORT int celt_decoder_ctl(CELTDecoder * st, int request, ...);
/* @} */
const char *celt_strerror(int error);
#ifdef __cplusplus
}