Sets a sample's data.
Namespace: Un4seen.Bass
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
[DllImportAttribute("bass")] public static bool BASS_SampleSetData( int handle, int[] buffer )
Parameters
- handle
- Type: SystemInt32
The sample handle. - buffer
- Type: SystemInt32
The array of Int32 values representing the sample data to set (Caution: Int32=2xInt16, so this overload can e.g. be used to provide a stereo sample containing of two 16-bit values).
Return Value
Type: BooleanIf successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
A sample's data can be set at any time, including during playback.
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not valid. |
BASS_ERROR_UNKNOWN | Some other mystery problem! |
Examples
See Also