BASS OPUS

BASS_ATTRIB_OPUS_ORIGFREQ attribute


The sample rate of an Opus stream's source material.

BASS_ChannelGetAttribute(
    HSTREAM handle,
    BASS_ATTRIB_OPUS_ORIGFREQ,
    float *freq
);

Parameters

handleThe Opus stream handle.
freqThe sample rate.

Remarks

Opus streams always have a sample rate of 48000 Hz, and an Opus encoder will resample the source material to that if necessary. This attribute presents the original sample rate, which may be stored in the Opus file header. This attribute is read-only, so cannot be modified via BASS_ChannelSetAttribute.

See also

BASS_ChannelGetAttribute