BASS_ChannelGet3DAttributes

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

BOOL WINAPI BASS_ChannelGet3DAttributes(
    DWORD handle,
    DWORD *mode,
    float *min,
    float *max,
    DWORD *iangle,
    DWORD *oangle,
    DWORD *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 succesful, 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... it wasn't created or loaded with the BASS_xxx_3D flag.

Remarks
The iangle and oangle parameters must both be retrieved in a single call to this function (ie. you can't retrieve one without the other). See BASS_ChannelSet3DAttributes for an explanation of the parameters.

See also
BASS_ChannelGet3DPosition, BASS_ChannelGetAttributes, BASS_ChannelSet3DAttributes