BASS_SampleSetData
Sets a sample's data.
BOOL BASS_SampleSetData(
HSAMPLE handle,
void *buffer
);
Parameters
handle | The sample handle.
|
buffer | Pointer to the data.
|
Return value
If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_HANDLE | handle is not valid.
|
BASS_ERROR_UNKNOWN | Some other mystery problem!
|
Remarks
The required length and format of the data can be retrieved via BASS_SampleGetInfo.
A sample's data can be set at any time, including during playback.
See also
BASS_SampleCreate, BASS_SampleGetData