VistaCoreAudioApiHelper Class

Contains VistaCoreAudioAPI related utilities.

Definition

Namespace: DevCase.ThirdParty.VistaCoreAudioApi
Assembly: DevCase.net48.ThirdParty.VistaCoreAudioApi (in DevCase.net48.ThirdParty.VistaCoreAudioApi.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class VistaCoreAudioApiHelper : IDisposable
Inheritance
Object    VistaCoreAudioApiHelper
Implements
IDisposable

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed NuGet libraries:

Vista Core Audio API Master Volume Control by Ray M.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Constructors

VistaCoreAudioApiHelper Initializes a new instance of the VistaCoreAudioApiHelper class.

Properties

ChannelsCount Gets the total amount of device channels.
DeviceMonitorsEnabled Gets or sets a value indicating whether the audio device timers that monitors and reports changes are enabled.
IsLocked Gets a value indicating whether the device is locked.
IsMuted Gets a value indicating whether the device is muted.
Name Gets the audio device name.
TimerChannelsVolumeChangedDetectionInterval Gets or sets the Channels-Volume changed detection interval, in milliseconds. This interval is associated with a timer that monitors and reports Channels-Volume changes on the device.
TimerMasterVolumeChangedDetectionInterval Gets or sets the Master-Volume changed detection interval, in milliseconds. This interval is associated with a timer that monitors and reports Master-Volume changes on the device.
TimerMuteDetectionInterval Gets or sets the mute detection interval, in milliseconds. This interval is associated with a timer that monitors and reports Mute changes on the device.
Volume Gets or sets the current device volume.

Methods

Dispose Releases all the resources used by this instance.
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetAllChannelVolume Gets the volume of all the device channels.
GetChannelVolume Gets the volume of an specific device channel.
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
LockDevice Locks the device, disabling to mute or change the volume.
MuteDevice Mutes the device.
SetAllChannelVolume Sets the volume for all the device channels.
SetChannelVolume Sets the volume for an specific device channel.
ToString Returns a string that represents the current object.
(Inherited from Object)
UnlockDevice Unlocks the device, enabling to mute or change the volume.
UnmuteDevice Unmutes the device.

Events

ChannelVolumeChanged Event raised when a device channel(s) volume changes
MasterVolumeChanged Event raised when device master-volume changes.
MutedChanged Event raised when device muting changes.

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also