RustyOpus.OggOpus (rusty_opus v0.4.0)

Copy Markdown View Source

In-memory Ogg Opus family-0 file APIs.

This module is deliberately separate from the raw Opus packet APIs on RustyOpus. Output is a minimal Ogg Opus file and does not copy comments.

Summary

Functions

decode(blob)

@spec decode(binary()) :: {:ok, RustyOpus.PCM.t()} | {:error, RustyOpus.Error.t()}

encode(pcm, opts)

@spec encode(
  RustyOpus.PCM.t(),
  keyword()
) :: {:ok, binary()} | {:error, RustyOpus.Error.t()}

reencode(blob, opts)

@spec reencode(
  binary(),
  keyword()
) :: {:ok, binary()} | {:error, RustyOpus.Error.t()}