Hello everyone
If some can solve it please I can spend my weekend in peace...
I am recording microphone data on a pocket pc and saving it to a wave
file...
I am following the general basic steps as follows
start recording
===========
waveinOpen->waveInPrepareHeader->waveInAddBuffer->waveInStart
by default i am recording 7 seconds of speech...
all works fine if i wait for 7 seconds and wait for the WIM_DATA to get
fired automatically wherein i write my buffer to a wave file...where i
also use waveInUnprepare and waveInClose after writing is finish
problem starts when I stop recording midway by clicking the stop button
where i call waveinStop()->waveInReset() (which should eventually fire
the WIM_DATA and send the buffer as DONE)
my system
1) either goes in an infinite hang OR
2) if somehow it does not hang no buffer data is passed..its all
empty....
what modification I need to do...
any help is highly appreciated...
Sid