Download Embedded SDK (Software Development Kit)
Transcript
Freescale Semiconductor, Inc.
G.723.1A Codec Library Interfaces
ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005
Code Example 3-3. Use of the Init_Vad Interface
#include “g723.h”
/*===============================================================================
LOCAL VARIABLES
===============================================================================*/
#define NUM_FRAMES 860
/*==================================================================================
APPLICATION
==================================================================================*/
int test_g7231a(void)
{
ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005
Freescale Semiconductor, Inc...
/* Declare the ChannelMem structure*/
Word32 Channel1[GLOBAL_MEM_Size/2];
/* Set two's complement rounding and enable saturation */
dspfuncInitialize();
/* Initialize the G.723 vocoder encode and decode functions as well as */
/* voice activity detection and confort noise generation */
Init_Coder(Channel1);
Init_Vad(Channel1);
}
3-12
G.723.1A Speech Codec Library
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA