forked from voipmonitor/sniffer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codecs.h
41 lines (35 loc) · 970 Bytes
/
codecs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#define PAYLOAD_PCMU 0
#define PAYLOAD_GSM 3
#define PAYLOAD_G723 4
#define PAYLOAD_PCMA 8
#define PAYLOAD_G722 9
#define PAYLOAD_G729 18
#define PAYLOAD_ILBC 97
#define PAYLOAD_SPEEX 98
#define PAYLOAD_CLEARMODE 100
#define PAYLOAD_SILK 301
#define PAYLOAD_SILK8 302
#define PAYLOAD_SILK12 303
#define PAYLOAD_SILK16 304
#define PAYLOAD_SILK24 305
#define PAYLOAD_ISAC 306
#define PAYLOAD_ISAC16 307
#define PAYLOAD_ISAC32 308
#define PAYLOAD_OPUS 311
#define PAYLOAD_OPUS8 312
#define PAYLOAD_OPUS12 313
#define PAYLOAD_OPUS16 314
#define PAYLOAD_OPUS24 315
#define PAYLOAD_OPUS48 316
#define PAYLOAD_TELEVENT 400
#define USE_ILBC_ENHANCER 0
#define ILBC_MS 30
/* #define ILBC_MS 20 */
#define ILBC_FRAME_LEN 50 /* apparently... */
#define ILBC_SAMPLES 240 /* 30ms at 8000 hz */
#define GSM_SAMPLES 160
#define GSM_FRAME_LEN 33
#define MSGSM_FRAME_LEN 65
#define BUFFER_SAMPLES 8000
#define CODEC_LEN 1
#define UNLINK_RAW 1