Sets a sample's default attributes.
BOOL WINAPI BASS_SampleSetInfo( |
Parameters
handle | The sample handle. |
info | Pointer to the sample information structure. |
Return value
If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.
Error codes
BASS_ERROR_HANDLE | The handle is invalid. |
Remarks
Use this function and BASS_SampleGetInfo to edit a sample's default attributes. Changing a sample's default attributes does not affect any currently playing instances of the sample, it only affects subsequent playings of the sample. Use BASS_ChannelSetAttributes and BASS_ChannelSet3DAttributes to change the attributes of a playing sample.
Only the freq, volume, pan, flags (LOOP and OVER_xxx only) and the 3D attribute members of the BASS_SAMPLE structure are editable.
See also
BASS_ChannelSet3DAttributes, BASS_ChannelSetAttributes, BASS_SampleGetInfo, BASS_SAMPLE structure