SoundPeakMeter

BOOLEAN
    SoundPeakMeter(
        IN PWAVE_INFO
WaveInfo,
        OUT PLONG
Amplitudes
        );

The SoundPeakMeter function returns the peak amplitude value currently contained in the DMA buffer for the specified waveform device.

Parameters
WaveInfo
Pointer to a WAVE_INFO structure.
Amplitudes
Pointer to a longword. Amplitude values are returned in the longword. The lower word contains the left channel value, and the upper word contains the right channel value. Returned values are between 0x0 and 0xFFFF.
Return Value

Always returns TRUE.

Comments

The SoundPeakMeter function is typically called from a mixer driver’s HwGetControlData function. See MIXER_INFO.

Drivers calling SoundPeakMeter must include wave.h.