00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 static uint8_t ex_adpcm[] = {
00011 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00012 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00013 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00014 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00015 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00016 };
00017
00018 static struct ast_frame *adpcm_sample(void)
00019 {
00020 static struct ast_frame f = {
00021 .frametype = AST_FRAME_VOICE,
00022 .subclass = AST_FORMAT_ADPCM,
00023 .datalen = sizeof(ex_adpcm),
00024 .samples = ARRAY_LEN(ex_adpcm) * 2,
00025 .mallocd = 0,
00026 .offset = 0,
00027 .src = __PRETTY_FUNCTION__,
00028 .data.ptr = ex_adpcm,
00029 };
00030
00031 return &f;
00032 }