adpcmmain.c

来自「基于TI xdais算法标准的音频ADPCM算法」· C语言 代码 · 共 67 行

C
67
字号
#include <std.h>
#include <stdio.h>
#include <cassert>
#include <log.h>
#include <sys.h>
#include <mem.h>
#include <sio.h>
#include <csl.h>
#include <csl_cache.h>
#include <mbx.h>

#include <chan.h>
#include <icc.h>
#include <utl.h>


#include "adpcm.h"
#include "seeddm642.h"
#include "evmdm642_echocfg.h"

#ifdef _6x_
extern far LOG_Obj trace;
#else
extern LOG_Obj trace;
#endif

Void main()
{
    LOG_printf(&trace, "echo started");
    //fpDecoder = fopen("c:\test.txt", "wb");
    //assert(fpDecoder == NULL);
        // initialize RF5 modules
    CHAN_init();
    ICC_init();
    SCOM_init();
    
    /* 
     *  Set up RF5 modules
     *
     *  The first three parameters to CHAN_setup are
     *  algrfInternalHeap - heap from which algrf allocates internal
     *                      non-scratch memory requested by XDAIS algorithms.
     *  algrfExternalHeap - heap from which algrf allocates external memory
     *                      requested by XDAIS algorithms.
     *  sscrInternalHeap -  heap from which sscr allocates internal scratch
     *                      memory requested by XDAIS algorithms.
     */
        
    /*CHAN_setup( INTERNALHEAP, EXTERNALHEAP, INTERNALHEAP, 
                SCRBUCKETS, NULL, NULL );*/

    // initialize tasks
	thrEncInputInit();
	thrDecOutputInit();
	thrEncodeInit();
	thrDecodeInit();
	thrEncInputStartup();
	thrDecOutputStartup();
	thrEncodeStartup();
	thrDecodeStartup();

    // show heap usage, now that all threads are initialized
    //UTL_showHeapUsage( INTERNALHEAP );
    //UTL_showHeapUsage( EXTERNALHEAP );
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?