BASS.NET API for the Un4seen BASS Audio LibraryBassDShowBASS_DSHOW_CaptureGetDevices Method BASS.NET API for the Un4seen BASS Audio Library
Gets the available audio or video capture devices.

Namespace: Un4seen.Bass.AddOn.DShow
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.13.3
Syntax

[DllImportAttribute("xVideo", EntryPoint = "xVideo_CaptureGetDevices")]
public static int BASS_DSHOW_CaptureGetDevices(
	BASSDSHOWCapture deviceType,
	ENUMDEVICESPROC proc,
	IntPtr user
)

Parameters

deviceType
Type: Un4seen.Bass.AddOn.DShowBASSDSHOWCapture
The type of capture device to get (one of the BASSDSHOWCapture values, either audio or video).
proc
Type: Un4seen.Bass.AddOn.DShowENUMDEVICESPROC
The user defined callback receiving the available capture devices (see ENUMDEVICESPROC) or to retrieve only the number of available devices.
user
Type: SystemIntPtr
User instance data to pass to the callback function.

Return Value

Type: Int32
If successful, the number of available capture devices found is returns - else 0 is returned (use BASS_DSHOW_ErrorGetCode to get the error code).
Remarks

When using as a proc callback value this will return the number of the devices from the system only.

Another way to get the capture devices is by using the BASS_DSHOW_CallbackItemByIndex(BASSDSHOWCallbackItem, Int32) method.

See Also

Reference