Processing the MM_WOM_DONE Message

The following example shows how to process the MM_WOM_DONE message. This example assumes the application does not play multiple data blocks, so it can close the output device after playing a single data block.

// WndProc--Main window procedure.

LRESULT FAR PASCAL WndProc(HWND hWnd, UINT msg, WPARAM wParam,

LPARAM lParam)

{

switch (msg)

{

case MM_WOM_DONE:

// A waveform-audio data block has been played and

// can now be freed.

waveOutUnprepareHeader((HWAVEOUT) wParam,

(LPWAVEHDR) lParam, sizeof(WAVEHDR) );

// Free hData memory.

waveOutClose((HWAVEOUT) wParam);

break;

}

return DefWindowProc(hWnd, msg, wParam, lParam);

}

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database