Re: WaveIn notification methods

From: Chris P. [MVP] (msdn_at_chrisnet.net)
Date: 10/21/04


Date: Thu, 21 Oct 2004 10:50:05 -0400

lawrence wrote:

> The softphone genarally works fine and conversation can be done, but
> once in a while conversation become "dead air" or there would be a
> one-way audio. Grant mentioned something like the wavedrivers don't
> mark the waveheader flag to done. Is it possible that ciscowavedriver
> or the wavedriver of my headset (plantronics dsp500) sometimes dont
> change the flag to done?? And also when i do a waveInreset( ) after a
> "dead-air" or a oneway, my program hangs up. How can i work around
> with it?? thanks.

If the flag doesn't get changed then it's a driver bug, but if you're
application is locking up on waveInReset() that sometimes indicates that you
may be attempting to call waveInReset() from the wrong place at the wrong
time. What callback method are you currently using?

> p.s. and also where can i find some example code on how to implement
> the different callback modes?

I haven't seen any summaries but I'm sure if you google on each one
individually you will find sample code.



Relevant Pages

  • Re: waveInClose returns WAVERR_STILLPLAYING
    ... the brainstorm: Work through the buffer chain. ... > Test each flag for WHDR_DONE. ... > go back and start from the beginning with another waveInReset. ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: WaveIn notification methods
    ... I'm using callback function. ... "waveinaddbuffer" then I call waveinreset(). ... >> mark the waveheader flag to done. ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: waveInClose returns WAVERR_STILLPLAYING
    ... >> The API docs say that waveInReset marks all pending ... >directly with the driver rather than Windows as you do on 2000 and XP ... >waveInResetof approximately the length of the queued buffer. ... Test each flag for WHDR_DONE. ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: confused by socket.BeginReceive
    ... and you do not have to wait on the second thread. ... > interact with the first thread is up to you. ... "...Your callback method should implement the EndReceive method. ... You also need a flag to indicate if the operation timed out ...
    (microsoft.public.dotnet.languages.csharp)

Loading