H
hitppcat
Unregistered / Unconfirmed
GUEST, unregistred user!
采用CALLBACK_FUNCTION方式总是不能成功
WaveHandle:=new(PHWaveIn);
WaveFormat:=new(PWaveFormatEx);
WaveFormat.wFormatTag:=WAVE_FORMAT_PCM;
WaveFormat.wBitsPerSample:=16;
WaveFormat.nSamplesPerSec:=11025;
WaveFormat.nAvgBytesPerSec:=22050;
WaveFormat.nBlockAlign:=2;
WaveInOpen(WaveHandle,WAVE_MAPPER,WaveFormat,DWORD(@WaveInProc),0,CALLBACK_FUNCTION)
第5个参数不知道怎么设置,程序总是异常退出
高手帮忙,指点迷津啊!
WaveHandle:=new(PHWaveIn);
WaveFormat:=new(PWaveFormatEx);
WaveFormat.wFormatTag:=WAVE_FORMAT_PCM;
WaveFormat.wBitsPerSample:=16;
WaveFormat.nSamplesPerSec:=11025;
WaveFormat.nAvgBytesPerSec:=22050;
WaveFormat.nBlockAlign:=2;
WaveInOpen(WaveHandle,WAVE_MAPPER,WaveFormat,DWORD(@WaveInProc),0,CALLBACK_FUNCTION)
第5个参数不知道怎么设置,程序总是异常退出
高手帮忙,指点迷津啊!