Compartilhar via


Waveform Audio Messages

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

Wave application programming interface (API) messages fall into two categories: window messages and callback function messages. The following table shows these messages.

Programming element Description

DRVM_MAPPER_PREFERRED_GET

This message is used to query the preferred device, using the existing waveInMessage or waveOutMessage function to the WAVE_MAPPER device id.

DRVM_MAPPER_PREFERRED_SET

This message is sent through the waveInMessage or waveOutMessage function to set the preferred device ID of the device referenced by WAVE_MAPPER to a new value.

MIDI_MESSAGE_FREQGENOFF

Commands the driver to stop generating a MIDI note at a specified frequency.

MIDI_MESSAGE_FREQGENON

Commands the driver to begin generating a MIDI note at a specified frequency.

MIDI_MESSAGE_UPDATETEMPO

Sent to the driver to set a new tempo for MIDI playback.

MM_WIM_CLOSE

This message is sent to a window when a waveform-audio input device is closed.

MM_WIM_DATA

This message is sent to a window when waveform-audio data is present in the input buffer and the buffer is being returned to the application.

MM_WIM_OPEN

This message is sent to a window when a waveform-audio input device is opened.

MM_WOM_ATTENUATED

This message indicates that an audio stream is controlled by an audio gain class.

MM_WOM_CLOSE

This message is sent to a window when a waveform-audio output device is closed.

MM_WOM_DONE

This message is sent to a window when the given output buffer is being returned to the application.

MM_WOM_FORCESPEAKER

This message is used to make sure that an audio stream is routed to the external speaker on a Windows Mobile device.

MM_WOM_OPEN

This message is sent to a window when the given waveform-audio output device is opened.

MM_WOM_SETSECONDARYGAINCLASS

This message associates a stream context with an attenuation class.

MM_WOM_SETSECONDARYGAINLIMIT

This message places a limit on the maximum volume for all streams associated with an attenuation class and scales the streams' volumes accordingly.

WIM_CLOSE

This message is sent to the given waveInProc callback function when a waveform-audio input device is closed.

WIM_DATA

This message is sent to the given waveInProc callback function when waveform-audio data is present in the input buffer and the buffer is being returned to the application.

WIM_OPEN

This message is sent to a waveInProc callback function when a waveform-audio input device is opened.

WOM_CLOSE

This message is sent to a waveOutProc callback function when a waveform-audio output device is closed.

WOM_DONE

This message is sent to a waveOutProc callback function when the given output buffer is being returned to the application.

WOM_OPEN

This message is sent to a waveOutProc callback function when a waveform-audio output device is opened.

See Also

Reference

Waveform Audio Reference