⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 g723_globals.c

📁 windows环境下利用IPP库的例子代码
💻 C
字号:
/******************************************************************************
//               INTEL CORPORATION PROPRIETARY INFORMATION
//  This software is supplied under the terms of a license agreement or
//  nondisclosure agreement with Intel Corporation and may not be copied
//  or disclosed except in accordance with the terms of that agreement.
//        Copyright (c) 2000-03 Intel Corporation. All Rights Reserved.
//
//  VSS:
//		$Workfile: g723_globals.c $
//      $Revision: 1 $
//      $Date: 05-05-24 17:57 $
//      $Archive: /ipp_sample/ipp5/ipp50/dev/src/arm_ppc/speech/g723/src/g723_globals.c $
//
//  Description:
//      IPP G.723.1 cross-architecture sample code
//      global variables
//
******************************************************************************/

/* IPP definitions */
#include <g723_platform_config.h>

/* Codec definitions */
#include <g723_codec.h>

/********************************
 OS adaptation layer    
 ********************************/
#include <g723_oal_win32.h>

/* audio device */
HWAVEOUT			hWaveOut;							// audio output device handle
LPWAVEHDR			g_waveMixBufferA;					// audio output buffer A
LPWAVEHDR			g_waveMixBufferB;					// audio output buffer B
int					g_sampleRate		=8000;			// audio sample rate
int					g_channels			=1;				// num audio channels
int					g_bitsPerSample		=16; 			// bits per sample
int					g_WaveBufLen		=WAVEBUF_LEN;	// Audio buffer size

/* status */
int					g_G723Done			=0;				// flag, end of PCM input stream
int					g_FirstTime			=1;				// app init flag
int					g_busy				=0;				// flag, codec or tv test in progress 

/* user interface */
HWND				g_hwnd				=NULL;			// main window handle
HMENU				g_hBitrateMenu;						// bitrate menu handle
HMENU				g_hDtxMenu;							// DTX menu handle
int					g_propertiesDisplayed=0;			// flag, stream properties displayed	

/* codec */
int					g_dtxEnable;						// DTX enable status
IppSpchBitRate		g_bitrate;							// bitrate indicator
IppG723EncoderState	g_G723encState;						// encoder state
IppG723DecoderState	g_G723decState;						// decoder state

/* streams */
IppPcmStream		g_inputPcmStream;					// input PCM stream
IppBitstream		g_outputBitstream;					// output compressed bitstream

/* test vector compliance test */
TCHAR				g_filename[MAXFN];					// test vector script filename
TCHAR				g_tstr[MAXFN];						// test vector display string temp
int					g_err;								// test vector error counter
TCHAR				g_tvPath[MAXFN];					// test vector path
int					g_uut;								// unit under test (encoder or decoder)


⌨️ 快捷键说明

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