Table of Contents

Class AudioCaptureSourceDialog

Namespace
VisioForge.Core.UI.WPF.Dialogs.Sources
Assembly
VisioForge.Core.dll

Dialog window for configuring audio capture sources.

public class AudioCaptureSourceDialog : Window, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, IComponentConnector

Inheritance

Implements

Inherited Members

Remarks

This dialog provides a user interface for selecting and configuring audio capture devices for recording or streaming applications. It enumerates available audio input devices and their supported formats, allowing users to choose the appropriate device and format for their audio capture needs.

Key features: - Automatic enumeration of all available audio input devices - Support for multiple audio APIs (platform-specific) - Display of supported audio formats for each device - Cross-platform device discovery through DeviceEnumerator

Audio APIs supported: - Windows: DirectShow, Windows Audio Session API (WASAPI) - Linux: ALSA, PulseAudio - macOS: Core Audio - Cross-platform: OpenAL

Common use cases: - Microphone selection for voice recording - Line-in device selection for audio capture - System audio loopback recording - Multi-device audio capture setup

Constructors

AudioCaptureSourceDialog(AudioCaptureDeviceAPI)

Initializes a new instance of the VisioForge.Core.UI.WPF.Dialogs.Sources.AudioCaptureSourceDialog class with a specific audio API.

public AudioCaptureSourceDialog(AudioCaptureDeviceAPI api)

Parameters

api AudioCaptureDeviceAPI

The audio capture API to use for device enumeration. This limits device discovery to the specified API.

AudioCaptureSourceDialog()

Initializes a new instance of the VisioForge.Core.UI.WPF.Dialogs.Sources.AudioCaptureSourceDialog class. When using this constructor, all available audio APIs will be queried for devices.

public AudioCaptureSourceDialog()

Properties

Device

Gets the selected audio capture device name.

public string Device { get; }

Property Value

string

Format

Gets the selected audio format.

public string Format { get; }

Property Value

string

Methods

InitializeComponent()

InitializeComponent

public void InitializeComponent()