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
Methods
GetLevel(uint)
Get Channel Volume Level
public float GetLevel(uint channel)
Parameters
channeluintChannel
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
channeluintChannel
minLevelDbfloatMinimum Level dB
maxLevelDbfloatMaximum Level dB
steppingfloatStepping
SetLevel(uint, float)
Set Channel Volume Level
public void SetLevel(uint channel, float value)
Parameters
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
SetLevelUniform(float)
Sets all channels in the audio stream to the same uniform volume level, in decibels.
public void SetLevelUniform(float value)
Parameters
valuefloatVolume in decibels