123456789101112131415161718192021222324252627282930313233 |
- static uint8_t ex_g726[] = {
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- };
- static struct ast_frame *g726_sample(void)
- {
- static struct ast_frame f = {
- .frametype = AST_FRAME_VOICE,
- .subclass.codec = AST_FORMAT_G726,
- .datalen = sizeof(ex_g726),
- .samples = ARRAY_LEN(ex_g726) * 2,
- .mallocd = 0,
- .offset = 0,
- .src = __PRETTY_FUNCTION__,
- .data.ptr = ex_g726,
- };
- return &f;
- }
|