jjzjj

waveInGetDevCaps

全部标签

windows - 如何在Delphi中填写 "waveInGetDevCaps"函数参数?

我正在使用Window的API,尤其是“WaveIn”函数。我想知道我的笔记本电脑的输入音频设备支持的格式。因此,我使用了函数“waveInGetDevCaps”。此函数调用一旦被调用,就会用有关音频设备的信息填充WAVEINCAPS结构。到目前为止,这是我的代码:procedureTForm1.Button4Click(Sender:TObject);varwc:WAVEINCAPS;//structuretobefilledwithaudiodeviceinfobeginwaveInGetDevCaps(WAVE_MAPPER,&wc,sizeof(WAVEINCAPS));Sho