hank
2009-03-13 08:38:00 UTC
I'm developing recording program on WM. My steps when stop recording is:
waveInReset, waveInUnprepareHeader, then waveInClose. Because I want a
WIM_DATA message send immediately, so I use waveInReset not waveInStop.
But here is a wired problem: on some smartphone device, e.g. Motorola Q9H,
the value of dwBytesRecorded in WIM_DATA in callback AudioProc is always 0.
If I call waveInStop->waveInReset->waveInUnprepareHeader->waveInClose when
stop recording, the value of dwBytesRecorded is correct.
And I don't see this situation on other devices, like Touch Pro. My
questions are:
Does anyone know what's the problem?
How can I get the correct dwBytesRecorded? waveInGetPosition seems inaccurate.
Is that legal or correct to write like
"waveInStop->waveInReset->waveInUnprepareHeader->waveInClose" when stop
recording?
Is anyone able to provide an accurate and correct process of recording using
waveInRest?
Too many questions, it is really bothering me for a long time. Thanks very
much for help!
waveInReset, waveInUnprepareHeader, then waveInClose. Because I want a
WIM_DATA message send immediately, so I use waveInReset not waveInStop.
But here is a wired problem: on some smartphone device, e.g. Motorola Q9H,
the value of dwBytesRecorded in WIM_DATA in callback AudioProc is always 0.
If I call waveInStop->waveInReset->waveInUnprepareHeader->waveInClose when
stop recording, the value of dwBytesRecorded is correct.
And I don't see this situation on other devices, like Touch Pro. My
questions are:
Does anyone know what's the problem?
How can I get the correct dwBytesRecorded? waveInGetPosition seems inaccurate.
Is that legal or correct to write like
"waveInStop->waveInReset->waveInUnprepareHeader->waveInClose" when stop
recording?
Is anyone able to provide an accurate and correct process of recording using
waveInRest?
Too many questions, it is really bothering me for a long time. Thanks very
much for help!