Class PulseAudioSourceSettings
- Namespace
- VisioForge.Core.Types.X.Sources
- Assembly
- VisioForge.Core.dll
PulseAudio source settings for capturing audio using pulsesrc GStreamer element. PulseAudio is the default sound server on many Linux distributions. Implements the VisioForge.Core.Types.X.Sources.IAudioCaptureDeviceSourceSettings Implements the VisioForge.Core.Types.X.VideoCapture.IVideoCaptureBaseAudioSourceSettings
public class PulseAudioSourceSettings : IAudioCaptureDeviceSourceSettings, IVideoCaptureBaseAudioSourceSettings, IMediaBlockSettings, IAudioVolumeMuteInheritance
Implements
Inherited Members
Constructors
PulseAudioSourceSettings()
Initializes a new instance of the VisioForge.Core.Types.X.Sources.PulseAudioSourceSettings class.
public PulseAudioSourceSettings()PulseAudioSourceSettings(AudioCaptureDeviceInfo, AudioCaptureDeviceFormat)
Initializes a new instance of the VisioForge.Core.Types.X.Sources.PulseAudioSourceSettings class with device information.
public PulseAudioSourceSettings(AudioCaptureDeviceInfo device, AudioCaptureDeviceFormat format)Parameters
deviceAudioCaptureDeviceInfo-
The device.
formatAudioCaptureDeviceFormat-
The format.
Properties
API
Gets the API type.
public AudioCaptureDeviceAPI API { get; }Property Value
ClientName
Gets or sets the client name that will be visible in PulseAudio volume control applications.
public string ClientName { get; set; }Property Value
Device
Gets or sets the device information.
public AudioCaptureDeviceInfo Device { get; set; }Property Value
DeviceName
Gets or sets the PulseAudio device name. If null or empty, the default device will be used.
public string DeviceName { get; set; }Property Value
Format
Gets or sets the audio format.
public AudioCaptureDeviceFormat Format { get; set; }Property Value
ProvideClock
Gets or sets a value indicating whether to provide a clock for the pipeline.
public bool ProvideClock { get; set; }Property Value
Methods
CreateBlock()
Creates the media block.
public MediaBlock CreateBlock()Returns
- MediaBlock
-
MediaBlock.
GetMute()
Gets the mute state.
public bool GetMute()Returns
- bool
-
trueif muted,falseotherwise.
GetVolume()
Gets the volume.
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 state.
public void SetMute(bool mute)Parameters
mutebool-
if set to
truemute.
SetVolume(double)
Sets the volume.
public void SetVolume(double volume)Parameters
volumedouble-
The volume.
ToString()
Returns a String that represents this instance.
public override string ToString()