From: Larry on 31 Dec 2009 04:44 "ScottMcP [MVP]" <scottmcp(a)mvps.org> ha scritto nel messaggio news:d6577061-dc76-43bf-9604-20431b005e8c(a)r12g2000vbm.googlegroups.com... > That's an "odd" buffer size choose. Make the buffer an even number of > bytes. After all, you are recording 2 bytes per sample. I guess "nAvgBytesPerSec" is the value for the perfect buffer lenght!! so I a set this structure for the WAVEFORMATEX: wf.wBitsPerSample = 16; wf.nChannels = 1; wf.nSamplesPerSec = 44100; wf.nBlockAlign = (wf.nChannels * wf.wBitsPerSample) / 8; wf.nAvgBytesPerSec = (wf.nSamplesPerSec * wf.nBlockAlign); "nAvgBytesPerSec" will be: 88200 !!! that's the perfect buffer!!! > Congratulations on getting it working. thanks!!
First
|
Prev
|
Pages: 1 2 3 4 Prev: CreateEvent / WaveForm API Next: Assembly code with Borland's C compiler |