C
cjhien
Unregistered / Unconfirmed
GUEST, unregistred user!
下面的代码不行,会直接报错说不支持,而我的硬件已经利用商业软件播放过32bit了
with pcmdo
begin
wFormatTag := wave_Format_PCM;
// it's PCM data
nChannels := 2;
// 2 channels
nSamplesPerSec := sample_rate;
// set the 44.1KHz rate
nAvgBytesPerSec := 6 * sample_rate;
// two bytes per sample
wBitsPerSample := 24;
// 16-bit audio
nBlockAlign :=6;// for 2-channel 24-bit audio
cbSize := 0;
end;
waveOutOpen (@hWave_out, 0, @pcm, Handle, 0, callback_window);
with pcmdo
begin
wFormatTag := wave_Format_PCM;
// it's PCM data
nChannels := 2;
// 2 channels
nSamplesPerSec := sample_rate;
// set the 44.1KHz rate
nAvgBytesPerSec := 6 * sample_rate;
// two bytes per sample
wBitsPerSample := 24;
// 16-bit audio
nBlockAlign :=6;// for 2-channel 24-bit audio
cbSize := 0;
end;
waveOutOpen (@hWave_out, 0, @pcm, Handle, 0, callback_window);