BASS.NET API for the Un4seen BASS Audio LibraryBassBASS_SampleSetData Method (Int32, Int16)BASS.NET API for the Un4seen BASS Audio Library
Sets 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_SampleSetData(
	int handle,
	short[] buffer
)

Parameters

handle
Type: SystemInt32
The sample handle.
buffer
Type: SystemInt16
The array of Int16 values representing the sample data to set.

Return Value

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

The required length and format of the data can be retrieved via BASS_SampleGetInfo(Int32, BASS_SAMPLE).

A sample's data can be set at any time, including during playback.

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

Examples

See BASS_SampleCreate(Int32, Int32, Int32, Int32, BASSFlag).
See Also

Reference