www.pudn.com > g7231codec.rar > main.c


 
#include  
#include "g723de.h" 
#include "g723de_kn.h" 
 
int PtrIn0[240]; 
int PtrOut0[240]; 
 
void main(){ 
    G723DE_Handle  handle; 
    IG723DE_Fxns   fxns; 
    G723DE_Params  params; 
 
    fxns = G723DE_KN_IG723DE; 
    params = G723DE_PARAMS; 
 
    params.framesizeIn0 = 240; 
    params.framesizeOut0 = 240; 
 
    G723DE_init(); 
    if((handle = G723DE_create(&fxns, ¶ms)) != NULL){ 
        /* Call the control function to modify parameters as the algorithm runs  
        G723DE_Status  status; 
 
        // get current status 
        G723DE_control(pPtr->handle, G723DE_GETSTATUS, &status); 
 
        // modify/check status parameters before setting the new status information 
        G723DE_control(pPtr->handle, G723DE_SETSTATUS, &status); 
        */ 
 
        /* Call XDAIS algorithm specific routine(s) */ 
        /* For example: */ 
        G723DE_apply(handle, (XDAS_Int16 *)PtrIn0, (XDAS_Int16 *)PtrOut0); 
        G723DE_delete(handle); 
    } 
    G723DE_exit(); 
}