[wdmaudiodev] Re: Simple MME Question if I may

  • From: "Jeff Pages" <jeff@xxxxxxxxxxxxxxxx>
  • To: <wdmaudiodev@xxxxxxxxxxxxx>
  • Date: Fri, 14 Mar 2003 09:02:28 +1100

I suggest you read very carefully the documentation on the wave callback
functions. You must not call any other wave functions (such as
waveOutUnprepareHeader) or any but a select few Win32 functions from within
these callbacks.

I have found it easier to use the window messages (MM_WOM_DONE, etc) rather
than the callback functions, as there are no restrictions on what can be
called from within the window message loop.

Jeff

----- Original Message -----
From: "phil" <phil@xxxxxxxxxxxxxxxxxxxx>
To: <wdmaudiodev@xxxxxxxxxxxxx>
Sent: Thursday, March 13, 2003 7:33 AM
Subject: [wdmaudiodev] Simple MME Question if I may


>
> Hello
>
>     I am new to this list in the hopes I may find a solution. I am writing
> some code to use MME waveaudio calls.. it is a multi-buffer setup and it
> plays just fine. I am using a callback function to unprepare, prepare amd
> write new buffers.  However, when I call waveOutReset(hWave) , the first
> time it goes to the callback function after the call to waveoutReset() my
> code hangs inside the call to waveOutUnPrepareheader(); all of the data in
> the header seems fine on the call to unprepare the header. dwFlags is a 3
> which means the buffer is PREPARED and DONE.
> \
>     Any help would be great! I have not seen this yet and I am a little
> unsure as to how to deal with it.
> [phil]
>
> ******************
>
> WDMAUDIODEV addresses:
> Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
> Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
> Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
> Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx
>
> URL to WDMAUDIODEV page:
> http://www.wdmaudiodev.de/
>
>
>


******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.de/

Other related posts: