View Source Boombox.Packet (Boombox v0.1.0)

Data structure emitted and accepted by Boombox.run/1 when using :stream input or output.

Summary

Types

t()

Data structure emitted and accepted by Boombox.run/1 when using :stream input or output.

Types

@type format() ::
  %{}
  | %{
      audio_format: Membrane.RawAudio.SampleFormat.t(),
      audio_rate: pos_integer(),
      audio_channels: pos_integer()
    }
@type payload() :: Vix.Vips.Image.t() | binary()
@type t() :: %Boombox.Packet{
  format: format(),
  kind: :audio | :video,
  payload: payload(),
  pts: Membrane.Time.t()
}

Data structure emitted and accepted by Boombox.run/1 when using :stream input or output.

Functions

Link to this function

update_payload(packet, fun)

View Source
@spec update_payload(t(), (payload() -> payload())) :: t()