Debian Codegraph @

Xamr/codecs/ex_amr.h

raw symbols SCIP
1 #include "asterisk/format_cache.h" /* for ast_format_amr(wb) */
2 #include "asterisk/frame.h" /* for ast_frame, etc */
3
4 static uint8_t ex_amr[] = {
5 0xf0, 0x6d, 0x47, 0x8c, 0xc3, 0x0d, 0x03, 0xec,
6 0xe2, 0x18, 0x3e, 0x28, 0x20, 0x80
7 };
8
9 static struct ast_frame *amr_sample(void)
10 {
11 static struct ast_frame f = {
12 .frametype = AST_FRAME_VOICE,
13 .datalen = sizeof(ex_amr),
14 .samples = 160,
15 .mallocd = 0,
16 .offset = 0,
17 .src = __PRETTY_FUNCTION__,
18 .data.ptr = ex_amr,
19 };
20
21 f.subclass.format = ast_format_amr;
22
23 return &f;
24 }
25
26 static uint8_t ex_amrwb[] = {
27 0xf1, 0x5e, 0x51, 0x98, 0xc5, 0x64, 0xc7, 0xc5,
28 0x0c, 0x6c, 0x82, 0x19, 0x16, 0x03, 0xf0, 0x0a,
29 0x0b, 0x57, 0x53, 0x51, 0x7f, 0x97, 0x97, 0x79,
30 0x31, 0xdd, 0x73, 0x1b, 0x92, 0x54, 0xf5, 0x79,
31 0x9a,
32 };
33
34 static struct ast_frame *amrwb_sample(void)
35 {
36 static struct ast_frame f = {
37 .frametype = AST_FRAME_VOICE,
38 .datalen = sizeof(ex_amrwb),
39 .samples = 320,
40 .mallocd = 0,
41 .offset = 0,
42 .src = __PRETTY_FUNCTION__,
43 .data.ptr = ex_amrwb,
44 };
45
46 f.subclass.format = ast_format_amrwb;
47
48 return &f;
49 }