BASS.NET API for the Un4seen BASS Audio LibraryBassDShowBASS_DSHOW_StreamCreateFile Method (String, Int32, IntPtr, BASSFlag)BASS.NET API for the Un4seen BASS Audio Library
Creates a sample stream from a supported file.

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

public static int BASS_DSHOW_StreamCreateFile(
	string file,
	int pos,
	IntPtr win,
	BASSFlag flags
)

Parameters

file
Type: SystemString
The filename to render.
pos
Type: SystemInt32
The position to begin playing from.
win
Type: SystemIntPtr
An initial window handle (can be ).
flags
Type: Un4seen.BassBASSFlag
Any combination of these flags BASSFlag:
BASS_DSHOW_STREAM_MIXUse this flag to enable mixing video on a channel.
BASS_DSHOW_NOAUDIO_PROCUse this flag to disable audio processing.
BASS_DSHOW_STREAM_LOOPUse this flag to auto restart the stream after it's finish.
BASS_DSHOW_STREAM_VIDEOPROCUse this to enable video processor.
BASS_DSHOW_STREAM_AUTODVDUse this flag to enable auto dvd functions(on mouse down, keys etc).
BASS_STREAM_AUTOFREEAutomatically free the stream when it ends. This allows you to stream a file and forget about it, as BASS will automatically free the stream's resources when it has reached the end or when BASS_ChannelStop(Int32) (or BASS_Stop) is called.
BASS_STREAM_DECODEDecode the sample data, without outputting it. Use BASS_ChannelGetData(Int32, IntPtr, Int32) to retrieve decoded sample data. The BASS_SAMPLE_SOFTWARE, BASS_SAMPLE_3D, BASS_SAMPLE_FX, BASS_STREAM_AUTOFREE and SPEAKER flags can not be used together with this flag.
BASS_UNICODEfile is a Unicode (16-bit characters) filename (automatically set with this overload).

Return Value

Type: Int32
If successful, the new stream's handle is returned, else 0 is returned. Use BASS_DSHOW_ErrorGetCode to get the error code.
Remarks

The necesary codec to decode the video must be available!

When a start position is specified and the requested position is not available, playback it will start automaticaly from the begginning.

See Also

Reference