Microsoft DirectX 8.1 (Visual Basic)

DirectPlayVoiceEvent8.InputLevel

Called periodically to notify the user of the input level from the microphone.

InputLevel(PeakLevel As Long, _
    RecordVolume As Long)

Parts

PeakLevel
Long value representing peak level across the current frame, which corresponds to approximately 1/10 second of audio stream. The current frame typically lags 50-200 milliseconds (ms) behind real-time. This value can range from 0 through 99, with 0 being completely silent and 99 being the highest possible input level.
RecordVolume
Current recording volume for the client. The value can range from -10,000 through 0. This member is available even when automatic gain control is active.