BASS_ChannelSetAttributeEx


Sets the value of a channel's attribute.

BOOL BASS_ChannelSetAttributeEx(
    DWORD handle,
    DWORD attrib,
    void *value,
    DWORD size
);

Parameters

handleThe channel handle... a HCHANNEL, HMUSIC, HSTREAM, or HRECORD.
attribThe attribute to set the value of... one of the following.
BASS_ATTRIB_SCANINFOScanned info. (HSTREAM only)
other attributes may be supported by add-ons, see the documentation.
valueThe new attribute data.
sizeThe size of the attribute data.

Return value

If successful, TRUE is returned, else FALSE is returned. Use BASS_ErrorGetCode to get the error code.

Error codes

BASS_ERROR_HANDLEhandle is not a valid channel.
BASS_ERROR_ILLTYPEattrib is not valid.
BASS_ERROR_ILLPARAMThe value content or size is not valid.
some attributes may have additional error codes, see the documentation.

Remarks

This function also supports the floating-point attributes supported by BASS_ChannelGetAttribute.

See also

BASS_ChannelGetAttributeEx, BASS_ChannelSetAttribute