Creates a capture stream from audio/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_CaptureCreate")] 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_DECODE Use this flag to enable decoding mode on a stream (e.g. to quickly extract the audio). BASS_DSHOW_STREAM_MIX Use this flag to enable video mixing procedures on the stream.
Return Value
Type: Int32If successful, the new capture handle is returned - else 0 is returned (use BASS_DSHOW_ErrorGetCode to get the error code).
See Also