From: Larry on 28 Dec 2009 20:40
"ScottMcP [MVP]" <scottmcp(a)mvps.org> ha scritto nel messaggio
> It seems fine to do it that way. I think you could get by just fine
> without the checks though, because the buffers will be filled in the
> same order you output them. So a counter variable would be needed,
Oh my, I never thought of it like that!
do you think the following would be good?
int k = 0;
// CALLBACK EVENT
if(buff[k].dwFlags & WHDR_DONE)
waveInAddBuffer(hwi, &buff[k], sizeof(WAVEHDR));
if(k == num_buffers -1)
k = 0;
for (int u = 0; u<num_buffers; u++)
waveInUnprepareHeader(hwi, &buff[u], sizeof(WAVEHDR));
I tried the code and it seems I am experiencing some sort of delay so maybe
that's proove it is working!
From: Larry on 28 Dec 2009 20:51
"Larry" <dontmewithme(a)got.it> ha scritto nel messaggio
> "ScottMcP [MVP]" <scottmcp(a)mvps.org> ha scritto nel messaggio
> I tried the code and it seems I am experiencing some sort of delay so
> maybe that's proove it is working!
By the way the whole code is avaible here: http://theartofweb.net/cpp/