Table of Contents

Class AudioMeterInformation

Namespace
AudioDeviceLib.CoreAudioApi
Assembly
AudioDeviceLib.dll

Managed wrapper over the Core Audio IAudioMeterInformation interface. Exposes the current peak sample values (master and per-channel) for an audio endpoint.

[PublicAPI]
public sealed class AudioMeterInformation : IDisposable
Inheritance
AudioMeterInformation
Implements
Inherited Members

Properties

HardwareSupport

Gets the hardware functions (volume, mute, meter) natively supported by the endpoint.

public EndpointHardwareSupport HardwareSupport { get; }

Property Value

EndpointHardwareSupport

MasterPeakValue

Gets the current master peak sample value in the range 0.0 to 1.0.

public float MasterPeakValue { get; }

Property Value

float

Exceptions

COMException

Thrown when the underlying Core Audio call fails.

MeteringChannelCount

Gets the number of channels available for metering.

public uint MeteringChannelCount { get; }

Property Value

uint

Methods

Dispose()

Invalidates this wrapper without releasing externally held COM references.

public void Dispose()

GetChannelsPeakValues()

Reads the current peak scalar for each channel.

public float[] GetChannelsPeakValues()

Returns

float[]

A new array of channel peaks.