BASS_ATTRIB_BITRATE attribute

The average bitrate of a file stream.

BASS_ChannelGetAttribute(
    HSTREAM handle,
    BASS_ATTRIB_BITRATE,
    float *bitrate
);

Parameters

handleThe stream handle.
bitrateThe bitrate in kilobits per second (kbps).

Remarks

This attribute gives the average bitrate of the file's audio data. If the file also contains video, that is excluded from the bitrate calculation.

This attribute is read-only, so cannot be modified via BASS_ChannelSetAttribute.

See also

BASS_ChannelGetAttribute, BASS_StreamGetFilePosition