XenevaOS
Loading...
Searching...
No Matches
lc3.h
Go to the documentation of this file.
1
30#ifndef __BT_LC3_H__
31#define __BT_LC3_H__
32
33#include <stdint.h>
34
35#define LC3_SAMPLES 160
36#define LC3_BYTES 40
37
38/* 16 kHz, 10 ms, 40-octet frame used by the unicast 16_2_1 configuration.
39 * The frame is an in-tree MDCT frame of that size: a low-delay window, 20
40 * bands, and a fixed bit budget. bt_lc3_decode inverts bt_lc3_encode. */
41int bt_lc3_encode(const int16_t* pcm, uint8_t out[LC3_BYTES]);
42int bt_lc3_decode(const uint8_t in[LC3_BYTES], int16_t* pcm);
43
44#endif
#define out(...)
Definition main.cpp:65
short int int16_t
Definition acefiex.h:159
unsigned char uint8_t
Definition acefiex.h:161
int bt_lc3_decode(const uint8_t in[LC3_BYTES], int16_t *pcm)
Definition lc3.c:120
int bt_lc3_encode(const int16_t *pcm, uint8_t out[LC3_BYTES])
Definition lc3.c:106
#define LC3_BYTES
Definition lc3.h:36