Class AudioCaptureDeviceSourceSettings
- Namespace
- VisioForge.Core.Types.X.Sources
- Assembly
- VisioForge.Core.dll
Common audio capture device source settings.
public class AudioCaptureDeviceSourceSettings : IAudioCaptureDeviceSourceSettings, IVideoCaptureBaseAudioSourceSettings, IMediaBlockSettings, IAudioVolumeMuteInheritance
Implements
Inherited Members
Constructors
AudioCaptureDeviceSourceSettings(AudioCaptureDeviceAPI, AudioCaptureDeviceInfo, AudioCaptureDeviceFormat)
Initializes a new instance of the VisioForge.Core.Types.X.Sources.AudioCaptureDeviceSourceSettings class.
public AudioCaptureDeviceSourceSettings(AudioCaptureDeviceAPI api, AudioCaptureDeviceInfo device, AudioCaptureDeviceFormat format)Parameters
apiAudioCaptureDeviceAPI-
The API.
deviceAudioCaptureDeviceInfo-
The device.
formatAudioCaptureDeviceFormat-
The format.
AudioCaptureDeviceSourceSettings(AudioCaptureDeviceInfo)
Initializes a new instance of the VisioForge.Core.Types.X.Sources.AudioCaptureDeviceSourceSettings class.
public AudioCaptureDeviceSourceSettings(AudioCaptureDeviceInfo device)Parameters
deviceAudioCaptureDeviceInfo-
The device.
AudioCaptureDeviceSourceSettings()
Initializes a new instance of the VisioForge.Core.Types.X.Sources.AudioCaptureDeviceSourceSettings class.
public AudioCaptureDeviceSourceSettings()Properties
API
Gets or sets the API.
public AudioCaptureDeviceAPI API { get; }Property Value
Device
Gets or sets the device.
public AudioCaptureDeviceInfo Device { get; set; }Property Value
Format
Gets or sets the format.
public AudioCaptureDeviceFormat Format { get; set; }Property Value
Methods
CreateBlock()
Creates the block.
public MediaBlock CreateBlock()Returns
- MediaBlock
-
MediaBlock.
GetMute()
Gets the mute.
public bool GetMute()Returns
- bool
-
trueif successful,falseotherwise.
GetVolume()
Gets the volume. Value should be in 0.0 - 1.0 range.
public double GetVolume()Returns
- double
-
System.Double.
IsSupported()
Determines whether this interface is supported.
public bool IsSupported()Returns
- bool
-
trueif this interface is supported; otherwise,false.
SetInterface(IAudioVolumeMute)
Sets the interface.
public void SetInterface(IAudioVolumeMute intf)Parameters
intfIAudioVolumeMute-
The interface.
SetMute(bool)
Sets the mute.
public void SetMute(bool mute)Parameters
mutebool-
if set to
truemute.
SetVolume(double)
Sets the volume. Value should be in 0.0 - 1.0 range.
public void SetVolume(double volume)Parameters
volumedouble-
The volume.
ToString()
Returns a String that represents this instance.
public override string ToString()