Re: How to detect what is happening when using CALLBACK_EVENT rather than CALLBACK_WINDOW

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Sun, 17 Apr 2005 18:24:12 +0100, Angus Comber wrote:

> Thanks.
>
> I want to stick with CALLBACK_EVENT.
>
> You say: It takes more communication from the rest of your app to know what
> is going on. What communication do you mean?

Communication, in that, your app has to notify your callback hander thread
if you go to stop mode so that you don't attempt to queue any more buffers.

> I have worked out I can do this:
> if (m_pWaveHdr2->dwFlags & WHDR_PREPARED) // to check if WAVEHDR prepared
>
> and:
> if (m_pWaveHdr2->dwFlags & WHDR_DONE) // to check if buffer used up

Those are the only flags you need to deal with, buffers that are currently
queued to play will have WHDR_INQUEUE. When re-queuing a buffer that is
done, you can simply reset the flag value to WHDR_PREPARED, adjust the
dwBufferLength if necessary and call waveOutWrite().
.



Relevant Pages

  • Re: XPe headless user application
    ... >> Then have you considered RDP option? ... > The communication is not really simple data transfers. ... > objects to transform the communication to simple data transfers. ... > you can just RDP to the target box and see the app UI and ...
    (microsoft.public.windowsxp.embedded)
  • Re: Scaling noise
    ... > And if the app is a pointer chasing app, as many apps are, that doesn't ... If bandwidth was the answer ... Attacking the communication bottlenecks by increasing ... been able to produce a working design for these cache coherent clusters ...
    (Linux-Kernel)
  • Re: bug in GenerateConsoleCtrlEvent?
    ... >> app, I would have to program an extra stub program just to start the app ... >> easy with console apps. ... Extra work with other ways of communication. ... you get a hidden window. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Duplicate socket between processes
    ... the app does not like that answer and are pushing me for a soloution. ... Paul T. ... useless if it doesn't even indicate that the server process is running! ... as an dll the communication is twice as fast. ...
    (microsoft.public.windowsce.app.development)
  • Re: My rant about the "throw out delphi and re-write it in C#" crowd.
    ... with a proprietary communication protocol. ... 32 bit Intel CPU running a proprietary OS that is a Unix derivative. ... The last app that I work with is a PC-based app that is written in Delphi ... We expect to go through an FAA certification process with this ...
    (borland.public.delphi.non-technical)