Creates a sample stream from memory data.
Assembly: Bass.Net (in Bass.Net.dll) Version: 188.8.131.52
[DllImportAttribute("xVideo", EntryPoint = "xVideo_StreamCreateFileMem")] public static int BASS_DSHOW_StreamCreateFile( IntPtr memory, long length, IntPtr win, BASSFlag flags )
<DllImportAttribute("xVideo", EntryPoint := "xVideo_StreamCreateFileMem">] Public Shared Function BASS_DSHOW_StreamCreateFile ( memory As IntPtr, length As Long, win As IntPtr, flags As BASSFlag ) As Integer
- Type: SystemIntPtr
An unmanaged pointer to the memory location as an IntPtr.
- Type: SystemInt64
Data length (needs to be set to the length of the memory stream in bytes which should be played).
- Type: SystemIntPtr
An initial window handle (can be ).
- Type: Un4seen.BassBASSFlag
Any combination of these flags BASSFlag:
BASS_DSHOW_STREAM_MIX Use this flag to enable mixing video on a channel. BASS_DSHOW_NOAUDIO_PROC Use this flag to disable audio processing. BASS_DSHOW_STREAM_LOOP Use this flag to auto restart the stream after it's finish. BASS_DSHOW_STREAM_VIDEOPROC Use this to enable video processor. BASS_DSHOW_STREAM_AUTODVD Use this flag to enable auto dvd functions(on mouse down, keys etc). BASS_STREAM_AUTOFREE Automatically 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_DECODE Decode 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_UNICODE file is a Unicode (16-bit characters) filename (automatically set with this overload).
Return ValueType: Int32
If successful, the new stream's handle is returned, else 0 is returned. Use BASS_DSHOW_ErrorGetCode to get the error code.
The necesary codec to decode the video must be available!