

/******************************************************************

 iLBC Speech Coder ANSI-C Source Code

 WebRtcIlbcfix_GetCbVec.h

******************************************************************/

#ifndef MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_GET_CD_VEC_H_
#define MODULES_AUDIO_CODING_CODECS_ILBC_MAIN_SOURCE_GET_CD_VEC_H_

#include <stdbool.h>
#include <stddef.h>
#include BOSS_FAKEWIN_V_stdint_h //original-code:<stdint.h>

#include BOSS_WEBRTC_U_modules__audio_coding__codecs__ilbc__defines_h //original-code:"modules/audio_coding/codecs/ilbc/defines.h"
#include BOSS_WEBRTC_U_rtc_base__system__unused_h //original-code:"rtc_base/system/unused.h"

// Returns true on success, false on failure. In case of failure, the decoder
// state may be corrupted and needs resetting.
bool WebRtcIlbcfix_GetCbVec(
    int16_t* cbvec, /* (o) Constructed codebook vector */
    int16_t* mem,   /* (i) Codebook buffer */
    size_t index,   /* (i) Codebook index */
    size_t lMem,    /* (i) Length of codebook buffer */
    size_t cbveclen /* (i) Codebook vector length */
    ) RTC_WARN_UNUSED_RESULT;

#endif
