BASS_ChannelGet3DAttributes


Retrieves the 3D attributes of a sample, stream, or MOD music channel with 3D functionality.

BOOL BASS_ChannelGet3DAttributes(
    DWORD handle,
    DWORD *mode,
    float *min,
    float *max,
    DWORD *iangle,
    DWORD *oangle,
    float *outvol
);

Parameters

handleThe channel handle... a HCHANNEL, HMUSIC, HSTREAM.
modeThe 3D processing mode... NULL = don't retrieve it.
minThe minimum distance... NULL = don't retrieve it.
maxThe maximum distance... NULL = don't retrieve it.
iangleThe angle of the inside projection cone... NULL = don't retrieve it.
oangleThe angle of the outside projection cone... NULL = don't retrieve it.
outvolThe delta-volume outside the outer projection cone... NULL = don't retrieve it.

Return value

If successful, then 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_NO3DThe channel does not have 3D functionality.

Remarks

The iangle and oangle parameters must both be retrieved in a single call to this function; one cannot be retrieved without the other. See BASS_ChannelSet3DAttributes for an explanation of the parameters.

See also

BASS_ChannelGet3DPosition, BASS_ChannelGetAttribute, BASS_ChannelSet3DAttributes, BASS_ATTRIB_EAXMIX