Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 static uint8_t ex_lpc10[] = {
00011 0x01, 0x08, 0x31, 0x08, 0x31, 0x80, 0x30,
00012 };
00013
00014 static struct ast_frame *lpc10_sample(void)
00015 {
00016 static struct ast_frame f = {
00017 .frametype = AST_FRAME_VOICE,
00018 .datalen = sizeof(ex_lpc10),
00019
00020
00021 .samples = LPC10_SAMPLES_PER_FRAME,
00022 .mallocd = 0,
00023 .offset = 0,
00024 .src = __PRETTY_FUNCTION__,
00025 .data.ptr = ex_lpc10,
00026 };
00027
00028 ast_format_set(&f.subclass.format, AST_FORMAT_LPC10, 0);
00029
00030 return &f;
00031 }