Error in WaveInPrepareHeader API

This forum contains short topics that require short answers. Developers arround the world are welcomed to help the community, or to post their own questions.
[C++ development]

Moderators: Teksoft, admin

Error in WaveInPrepareHeader API

Postby temp123 » Wed May 09, 2007 9:49 am

I am trying to make application for VOIP call on PPC using event base polling for WaveIn ans WaveOut. It works fine upto 50-60 call and after that WaveIn/WaveOutPrepareHeader APi throws MMSYSERR_NOMEM error and device needs to be reset for further call.

I follow the following sequence,

WaveInOpen
WaveInPrepareHeader
WaveInAddBuffer
WaveInStart


WaveInStop
WaveInReset
WaveInUnPrepareHeader
WaveInClose


Any API doesn't throws any error during successfull call but after 50-60 call , MMSYSERR_NOMEM error occurs for both WaveIn/WaveOutPrepareHeader.

I cross check for memory leak in program but it is not there.

Any clue for same would be appriciated.
temp123
TEK-Seeker
 
Posts: 37
Joined: Mon Jul 24, 2006 9:21 pm

Postby radhoo » Wed May 09, 2007 10:42 am

You need to try this driver-tool:
http://teksoftco.com/forum/viewtopic.php?t=1199

And see if you get the correct data at audio driver level.
eg: you call WaveInPrepareHeader in your program, and see if you get the call at driver level using this tool, and if it has the same parameters, etc.
radhoo
TEK-Insider
TEK-Insider
 
Posts: 640
Joined: Fri Mar 17, 2006 2:47 am


Return to Pocketpc

Who is online

Users browsing this forum: No registered users and 1 guest