| 1 | /*! \file |
| 2 | * \brief |
| 3 | * |
| 4 | * Copyright (C) 2008, Digium, Inc. |
| 5 | * |
| 6 | * Distributed under the terms of the GNU General Public License |
| 7 | * |
| 8 | */ |
| 9 | |
| 10 | static uint8_t ex_lpc10[] = { |
| 11 | 0x01, 0x08, 0x31, 0x08, 0x31, 0x80, 0x30, |
| 12 | }; |
| 13 | |
| 14 | static struct ast_frame *lpc10_sample(void) |
| 15 | { |
| 16 | static struct ast_frame f = { |
| 17 | .frametype = AST_FRAME_VOICE, |
| 18 | .datalen = sizeof(ex_lpc10), |
| 19 | /* All frames are 22 ms long (maybe a little more -- why did he choose |
| 20 | LPC10_SAMPLES_PER_FRAME sample frames anyway?? */ |
| 21 | .samples = LPC10_SAMPLES_PER_FRAME, |
| 22 | .mallocd = 0, |
| 23 | .offset = 0, |
| 24 | .src = __PRETTY_FUNCTION__, |
| 25 | .data.ptr = ex_lpc10, |
| 26 | }; |
| 27 | |
| 28 | f.subclass.format = ast_format_lpc10; |
| 29 | |
| 30 | return &f; |
| 31 | } |