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

📄 lcywavein.h

📁 该程序是在VC++6.0环境中
💻 H
字号:
/*声卡音频实时函数库的应用程序接口头文件*/
/*1.回调函数及参数说明:
 inputBuffer :输入缓冲区指针。
 framesPerBuffer:每次采样数据帧数。
*/
typedef int (PortAudioCallback)(
                void *inputBuffer, 
                unsigned long framesPerBuffer);
#ifdef __cplusplus
extern "C" {//说明外部函数
#endif /* __cplusplus */
/*2.打开声卡输入端函数及参数说明:
 numInputChannels:设置声道数,1时,单声道;2时,双声道。
 sampleRate:设置采样频率,1KHz至200KHz。
 framesPerBuffer:每次采样数据帧数。
 callback:回调函数指针。*/
bool LCY_OpenSoundCardIn(
                       int numInputChannels,
                       double sampleRate,
                       unsigned long framesPerBuffer,
                       PortAudioCallback *callback);
/*3.关闭声卡输入端函数*/
int LCY_CloseSoundCardIn(void);
/*4.开始采集输入端数据函数*/
bool LCY_StartInStream( void); 
#ifdef __cplusplus
}
#endif /* __cplusplus */
int frameIndex;
bool StartRecord(void){
	frameIndex=0;
	return LCY_StartInStream();
}
#include <math.h>
const double PI=2*asin(1);
long neg_i1 = -1;

⌨️ 快捷键说明

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