Membrane: Opus Format v0.2.0 Membrane.Opus View Source

This module implements struct describing an Opus-encoded audio stream.

Based on RFC 6716.

Link to this section Summary

Types

Bitrate used to encode the stream in bit/s.

Number of channels transmitted in the stream.

t()

Link to this section Types

Link to this type

bitrate_t()

View Source
bitrate_t() :: non_neg_integer() | nil

Bitrate used to encode the stream in bit/s.

Opus supports all bitrates from 6 kbit/s to 510 kbit/s, so this value has to be in range 6144 to 522240.

Link to this type

channels_t()

View Source
channels_t() :: 1 | 2 | nil

Number of channels transmitted in the stream.

Link to this type

t()

View Source
t() :: %Membrane.Opus{bitrate: bitrate_t(), channels: channels_t()}