Skip to content
Snippets Groups Projects
ex_g722.h 1.52 KiB
Newer Older
  • Learn to ignore specific revisions
  • /*! \file
     * \brief 8-bit data
     *
     * Copyright (C) 2008, Digium, Inc.
     *
     * Distributed under the terms of the GNU General Public License
     *
     */
    
    
    #ifndef ASTERISK_EX_G722_H
    #define ASTERISK_EX_G722_H
    
    
    static uint8_t ex_g722[] = {
    	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,
    	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,
    	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,
    	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 *g722_sample(void)
    {
    	static struct ast_frame f = {
    		.frametype = AST_FRAME_VOICE,
    		.datalen = sizeof(ex_g722),
    		.samples = ARRAY_LEN(ex_g722),
    		.mallocd = 0,
    		.offset = 0,
    		.src = __PRETTY_FUNCTION__,
    		.data.ptr = ex_g722,
    	};
    
    
    	f.subclass.format = ast_format_slin;
    
    
    #endif /* ASTERISK_EX_G722_H */