mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-11-03 20:38:59 +00:00 
			
		
		
		
	Reviewboard: https://reviewboard.asterisk.org/r/416/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@227580 65c4cc65-6c06-0410-ace0-fbb531ad65f3
		
			
				
	
	
		
			33 lines
		
	
	
		
			751 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			751 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*! \file
 | 
						|
 * \brief 4-bit ADPCM data
 | 
						|
 *
 | 
						|
 * Copyright (C) 2008, Digium, Inc.
 | 
						|
 *
 | 
						|
 * Distributed under the terms of the GNU General Public License
 | 
						|
 *
 | 
						|
 */
 | 
						|
 | 
						|
static uint8_t ex_adpcm[] = {
 | 
						|
	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 *adpcm_sample(void)
 | 
						|
{
 | 
						|
	static struct ast_frame f = {
 | 
						|
		.frametype = AST_FRAME_VOICE,
 | 
						|
		.subclass.codec = AST_FORMAT_ADPCM,
 | 
						|
		.datalen = sizeof(ex_adpcm),
 | 
						|
		.samples = ARRAY_LEN(ex_adpcm) * 2,
 | 
						|
		.mallocd = 0,
 | 
						|
		.offset = 0,
 | 
						|
		.src = __PRETTY_FUNCTION__,
 | 
						|
		.data.ptr = ex_adpcm,
 | 
						|
	};
 | 
						|
 | 
						|
	return &f;
 | 
						|
}
 |