Index: webrtc/modules/audio_coding/codecs/ilbc/cb_construct.h |
diff --git a/webrtc/modules/audio_coding/codecs/ilbc/cb_construct.h b/webrtc/modules/audio_coding/codecs/ilbc/cb_construct.h |
index b676ef97ad27576aebe362172dc05af9f8442d6f..45db85e4e3d703ea40f5c5cc20c9855d026ac8fe 100644 |
--- a/webrtc/modules/audio_coding/codecs/ilbc/cb_construct.h |
+++ b/webrtc/modules/audio_coding/codecs/ilbc/cb_construct.h |
@@ -19,20 +19,21 @@ |
#ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_CB_CONSTRUCT_H_ |
#define WEBRTC_MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_CB_CONSTRUCT_H_ |
+#include <stdbool.h> |
#include "defines.h" |
/*----------------------------------------------------------------* |
* Construct decoded vector from codebook and gains. |
*---------------------------------------------------------------*/ |
-void WebRtcIlbcfix_CbConstruct( |
- int16_t *decvector, /* (o) Decoded vector */ |
- int16_t *index, /* (i) Codebook indices */ |
- int16_t *gain_index, /* (i) Gain quantization indices */ |
- int16_t *mem, /* (i) Buffer for codevector construction */ |
- size_t lMem, /* (i) Length of buffer */ |
- size_t veclen /* (i) Length of vector */ |
- ); |
- |
+// Returns true on success, false on failure. |
+bool WebRtcIlbcfix_CbConstruct( |
+ int16_t* decvector, /* (o) Decoded vector */ |
+ int16_t* index, /* (i) Codebook indices */ |
+ int16_t* gain_index, /* (i) Gain quantization indices */ |
+ int16_t* mem, /* (i) Buffer for codevector construction */ |
+ size_t lMem, /* (i) Length of buffer */ |
+ size_t veclen /* (i) Length of vector */ |
+ ) WARN_UNUSED_RESULT; |
#endif |