| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
static uint8_t ex_adpcm[] = { |
| 11 |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 12 |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 13 |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 14 |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 15 |
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
| 16 |
}; |
| 17 |
|
| 18 |
static struct ast_frame *adpcm_sample(void) |
| 19 |
{ |
| 20 |
static struct ast_frame f = { |
| 21 |
.frametype = AST_FRAME_VOICE, |
| 22 |
.datalen = sizeof(ex_adpcm), |
| 23 |
.samples = ARRAY_LEN(ex_adpcm) * 2, |
| 24 |
.mallocd = 0, |
| 25 |
.offset = 0, |
| 26 |
.src = __PRETTY_FUNCTION__, |
| 27 |
.data.ptr = ex_adpcm, |
| 28 |
}; |
| 29 |
|
| 30 |
f.subclass.format = ast_format_adpcm; |
| 31 |
|
| 32 |
return &f; |
| 33 |
} |