BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_SampleGetData Method (Int32, IntPtr)BASS.NET API for the Un4seen BASS Audio Library
Retrieves a copy of a sample's data.

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

[DllImportAttribute("bass.dll", CharSet = CharSet.Unicode)]
public static bool BASS_SampleGetData(
	int handle,
	IntPtr buffer
)

Parameters

handle
Type: SystemInt32
The sample handle.
buffer
Type: SystemIntPtr
Pointer to a buffer to receive the data.

Return Value

Type: Boolean
If successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks

The buffer must be big enough to receive the sample's data, the size of which can be retrieved via BASS_SampleGetInfo(Int32, BASS_SAMPLE).

ERROR CODEDescription
BASS_ERROR_HANDLEhandle is not valid.
BASS_ERROR_UNKNOWNSome other mystery problem!

See Also

Reference