Table of Contents

Class AudioVolumeLevel

Namespace
NAudio.CoreAudioApi
Assembly
NAudio.Wasapi.dll

Audio Volume Level

public class AudioVolumeLevel
Inheritance
AudioVolumeLevel
Inherited Members

Properties

ChannelCount

Channel Count

public uint ChannelCount { get; }

Property Value

uint

Methods

GetLevel(uint)

Get Channel Volume Level

public float GetLevel(uint channel)

Parameters

channel uint

Channel

Returns

float

Volume Level

GetLevelRange(uint, out float, out float, out float)

Get Level Range

public void GetLevelRange(uint channel, out float minLevelDb, out float maxLevelDb, out float stepping)

Parameters

channel uint

Channel

minLevelDb float

Minimum Level dB

maxLevelDb float

Maximum Level dB

stepping float

Stepping

SetLevel(uint, float)

Set Channel Volume Level

public void SetLevel(uint channel, float value)

Parameters

channel uint

Channel

value float

Volume

SetLevelAllChannel(float[], uint)

sets the volume levels, in decibels, of all the channels in the audio stream

public void SetLevelAllChannel(float[] values, uint channels)

Parameters

values float[]

Volume levels in decibels

channels uint

Channels

SetLevelUniform(float)

Sets all channels in the audio stream to the same uniform volume level, in decibels.

public void SetLevelUniform(float value)

Parameters

value float

Volume in decibels