XenevaOS
Loading...
Searching...
No Matches
XenevaOS
KernelAA64
Bt
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. */
41
int
bt_lc3_encode
(
const
int16_t
* pcm,
uint8_t
out
[
LC3_BYTES
]);
42
int
bt_lc3_decode
(
const
uint8_t
in[
LC3_BYTES
],
int16_t
* pcm);
43
44
#endif
out
#define out(...)
Definition
main.cpp:65
int16_t
short int int16_t
Definition
acefiex.h:159
uint8_t
unsigned char uint8_t
Definition
acefiex.h:161
bt_lc3_decode
int bt_lc3_decode(const uint8_t in[LC3_BYTES], int16_t *pcm)
Definition
lc3.c:120
bt_lc3_encode
int bt_lc3_encode(const int16_t *pcm, uint8_t out[LC3_BYTES])
Definition
lc3.c:106
LC3_BYTES
#define LC3_BYTES
Definition
lc3.h:36
Generated by
1.9.8