BASS.NET API for the Un4seen BASS Audio LibraryBassDShowBASS_DSHOW_CaptureCreate Method BASS.NET API for the Un4seen BASS Audio Library
Creates a capture stream from audio/video capture devices.

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

[DllImportAttribute("xVideo.dll", EntryPoint = "xVideo_CaptureCreate", 
	CharSet = CharSet.Auto)]
public static int BASS_DSHOW_CaptureCreate(
	int audio,
	int video,
	int audioprofile,
	int videoprofile,
	BASSFlag flags
)

Parameters

audio
Type: SystemInt32
The audio device index (use 0 to disable audio capture).
video
Type: SystemInt32
The video device index (use 0 to disable video capture).
audioprofile
Type: SystemInt32
The audio profile to use (as returned by BASS_DSHOW_CaptureDeviceProfiles(Int32, BASSDSHOWCapture, ENUMPROFILESPROC, IntPtr)).
videoprofile
Type: SystemInt32
The video profile to use (as returned by BASS_DSHOW_CaptureDeviceProfiles(Int32, BASSDSHOWCapture, ENUMPROFILESPROC, IntPtr)).
flags
Type: Un4seen.BassBASSFlag
Any combination of these flags (see BASSFlag):
BASS_STREAM_DECODEUse this flag to enable decoding mode on a stream (e.g. to quickly extract the audio).
BASS_DSHOW_STREAM_MIXUse this flag to enable video mixing procedures on the stream.

Return Value

Type: Int32
If successful, the new capture handle is returned - else 0 is returned (use BASS_DSHOW_ErrorGetCode to get the error code).
See Also

Reference