GNU Radio's M17 Package
codec2_mod.h
Go to the documentation of this file.
1#ifndef CODEC2_MOD_H
2#define CODEC2_MOD_H
3
4#include "codec2_internal.h"
5#include <stdint.h>
6
7#ifdef __cplusplus
8extern "C"
9{
10#endif
11
12 typedef struct codec2_t codec2_t;
15
16/* public frame sizes */
17#define CODEC2_BYTES_PER_FRAME BYTES_PER_FRAME
18#define CODEC2_SAMPLES_PER_FRAME SAMPLES_PER_FRAME
19
23
26 uint8_t *bits,
27 const int16_t *speech);
28
31 int16_t *speech,
32 const uint8_t *bits);
33
34#ifdef __cplusplus
35}
36#endif
37
38#endif /* CODEC2_MOD_H */
void codec2_decoder_init(codec2_decoder_t *c2)
void codec2_encoder_init(codec2_encoder_t *c2)
void codec2_encode(codec2_encoder_t *c2, uint8_t *bits, const int16_t *speech)
void codec2_init(codec2_t *c2)
void codec2_decode(codec2_decoder_t *c2, int16_t *speech, const uint8_t *bits)
Definition codec2_internal.h:144
Definition codec2_internal.h:128
Definition codec2_internal.h:167