资源简介
portaudio 采用ASIO 驱动,多个通道一起录音,输出多个立体声,
代码片段和文件信息
#include “Stdafx.h“
#include “ASIOSys.h“
#include “ASIOInDevice.h“
#include
#define EXIT_ON_ERROR(hres) \
if (FAILED(hres)) { goto Exit; }
#define CLOSE_HANDLE(handle) \
if ((handle) != NULL) \
{ CloseHandle(handle); (handle) = NULL; }
extern HRESULT AddInVirtualDevice(CVirtualInDevice *pVirtualDevice);
extern BOOL IsStereoInxml(const char *szNameGUID id) ;
#define frameS_PER_BUFFER (1152)
#define SAMPLE_CHANNEL_NUM (2)
static int recorder_mono_count =0;
short chnPCMBuffer[frameS_PER_BUFFER*SAMPLE_CHANNEL_NUM];
HANDLE m_hWorking=NULL;
HANDLE m_hStoping=NULL;
bool m_bReleaseing =false;
//static FILE * logFile=NULL;
ASIOSys::ASIOSys()
{
m_stream=NULL;
m_bReleaseing=false;
m_hWorking=CreateEvent(NULLTRUETRUENULL);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
......R 355 2016-08-21 16:01 ASIOSys.h
......R 2610 2015-12-23 13:23 ASISys.cpp
......R 346 2015-12-23 13:23 ASISys.h
......R 5191 2017-05-03 11:18 ASIOSys.cpp
----------- --------- ---------- ----- ----
8502 4
评论
共有 条评论