Opus: Multistream specific encoder and decoder CTLs

Opus audio codec (RFC 6716): API and operations manual
| 1.3.1

Macros
Multistream specific encoder and decoder CTLs

These are convenience macros that are specific to the opus_multistream_encoder_ctl() and opus_multistream_decoder_ctl() interface. The CTLs from Generic CTLs, Encoder related CTLs, and Decoder related CTLs may be applied to a multistream encoder or decoder as well. In addition, you may retrieve the encoder or decoder state for an specific stream via OPUS_MULTISTREAM_GET_ENCODER_STATE or OPUS_MULTISTREAM_GET_DECODER_STATE and apply CTLs to it individually. More...

## Macros
#define | OPUS_MULTISTREAM_GET_ENCODER_STATE(x, y)
| Gets the encoder state for an individual stream of a multistream encoder. More...
#define | OPUS_MULTISTREAM_GET_DECODER_STATE(x, y)
| Gets the decoder state for an individual stream of a multistream decoder. More...

## Detailed Description

These are convenience macros that are specific to the opus_multistream_encoder_ctl() and opus_multistream_decoder_ctl() interface. The CTLs from Generic CTLs, Encoder related CTLs, and Decoder related CTLs may be applied to a multistream encoder or decoder as well. In addition, you may retrieve the encoder or decoder state for an specific stream via OPUS_MULTISTREAM_GET_ENCODER_STATE or OPUS_MULTISTREAM_GET_DECODER_STATE and apply CTLs to it individually.

## Macro Definition Documentation

## ◆ OPUS_MULTISTREAM_GET_DECODER_STATE

#define OPUS_MULTISTREAM_GET_DECODER_STATE | ( |  | x,
|  |  | y
| ) |  |

Gets the decoder state for an individual stream of a multistream decoder.

Parameters

  [in] | x | `opus_int32`: The index of the stream whose decoder you wish to retrieve. This must be non-negative and less than the `streams` parameter used to initialize the decoder.
  [out] | y | `OpusDecoder**`: Returns a pointer to the given decoder state.

Return values

  OPUS_BAD_ARG | The index of the requested stream was out of range.

## ◆ OPUS_MULTISTREAM_GET_ENCODER_STATE

#define OPUS_MULTISTREAM_GET_ENCODER_STATE | ( |  | x,
|  |  | y
| ) |  |

Gets the encoder state for an individual stream of a multistream encoder.

Parameters

  [in] | x | `opus_int32`: The index of the stream whose encoder you wish to retrieve. This must be non-negative and less than the `streams` parameter used to initialize the encoder.
  [out] | y | `OpusEncoder**`: Returns a pointer to the given encoder state.

Return values

  OPUS_BAD_ARG | The index of the requested stream was out of range.

For more information visit the Opus Website. |