BASS.NET API for the Un4seen BASS Audio Library

BassApeBASS_APE_StreamCreateFile Method (IntPtr, Int64, Int64, BASSFlag)

BASS.NET API for the Un4seen BASS Audio Library
Creates a sample stream from a Monkey's Audio memory IntPtr.

This overload implements streaming from memory.

Namespace:  Un4seen.Bass.AddOn.Ape
Assembly:  Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax

public static int BASS_APE_StreamCreateFile(
	IntPtr memory,
	long offset,
	long length,
	BASSFlag flags
)

Parameters

memory
Type: SystemIntPtr
An unmanaged pointer to the memory location as an IntPtr.
offset
Type: SystemInt64
Offset to begin streaming from (unused for memory streams, set to 0).
length
Type: SystemInt64
Data length (needs to be set to the length of the memory streams in bytes which should be played).
flags
Type: Un4seen.BassBASSFlag
Any combination of these flags: see BASSFlag.

Return Value

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

Works in the same way BASS_StreamCreateFile(String, Int64, Int64, BASSFlag) does - so for details look there.
See Also

Reference