Capture.AudioSources Property

DirectX.Capture

DirectX.Capture Class Library

Capture.AudioSources Property

Collection of available audio sources/physical connectors on the current audio device.

public SourceCollection AudioSources {get;}

Remarks

In most cases, if the device has only one source, this collection will be empty. For audio there are 2 different methods for enumerating audio sources an audio crossbar (usually TV tuners?) or an audio mixer (usually sound cards?). This class will first look for an audio crossbar. If no sources or only one source is available on the crossbar, this class will then look for an audio mixer. This class does not support both methods.

The information contained in this property is retrieved and cached the first time this property is accessed. Future calls to this property use the cached results. This was done for performance.

However, this means you may get different results depending on when you access this property first. If you are experiencing problems, try accessing the property immediately after creating the Capture class or immediately after setting the video and audio compressors. Also, inform the developer.

See Also

Capture Class | Capture Members | DirectX.Capture Namespace