waveInProc  7EN88C 

The waveInProc function is the callback function used with the waveform-audio input device. This function is a placeholder for the application-defined function name. The address of this function can be specified in the callback-address parameter of the waveInOpenDZFQLF function.

void CALLBACK waveInProc(

    HWAVEIN hwi,

 

    UINT uMsg,

 

    DWORD dwInstance,

 

    DWORD dwParam1,

 

    DWORD dwParam2

 

   );

 

 

Parameters

hwi

Handle of the waveform-audio device associated with the callback function.

uMsg

Waveform-audio input message. It can be one of the following messages:

WIM_CLOSE8W9VL7

Sent when the device is closed using the waveInClose1Y8V8B3 function.

WIM_DATA1K86MW9

Sent when the device driver is finished with a data block sent using the waveInAddBuffer76989G function.

WIM_OPENXZ6216

Sent when the device is opened using the waveInOpenDZFQLF function.

dwInstance

User instance data specified with waveInOpen.

dwParam1

Message parameters.

dwParam2

Message parameters.

 

Return Values

This function does not return a value.

Remarks

Applications should not call any system-defined functions from inside a callback function, except for EnterCriticalSection, LeaveCriticalSection, midiOutLongMsg, midiOutShortMsg, OutputDebugString, PostMessage, PostThreadMessage, SetEvent, timeGetSystemTime, timeGetTime, timeKillEvent, and timeSetEvent. Calling other wave functions will cause deadlock.

See Also

EnterCriticalSection, LeaveCriticalSection, midiOutLongMsg, midiOutShortMsg, OutputDebugString, PostMessage, PostThreadMessage, SetEvent, timeGetSystemTime, timeGetTime, timeKillEvent, timeSetEvent, waveInAddBuffer, waveInClose, waveInOpen, WIM_DATA, WIM_CLOSE, WIM_OPEN