Membrane Element: PortAudio v0.2.4 Membrane.Element.PortAudio.Sink View Source

Audio sink that plays sound via multi-platform PortAudio library.

Element options

Passed via struct Membrane.Element.PortAudio.Sink.t/0

  • endpoint_id

    Default value: :default

    PortAudio sound card id

  • ringbuffer_size

    Default value: 4096

    Size of the ringbuffer (in frames)

  • portaudio_buffer_size

    Default value: 256

    Size of the portaudio buffer (in frames)

  • latency

    Default value: :high

    Latency of the output device

Pads

:input

Availability:always
CapsMembrane.Caps.Audio.Raw, restrictions:
  channels: 2,
  sample_rate: 48000,
  format: :s16le
Demand unit:bytes
Direction:input
Mode:pull

Link to this section Summary

Types

t()

Struct containing options for Membrane.Element.PortAudio.Sink

Functions

Returns pads descriptions for Membrane.Element.PortAudio.Sink

Returns description of options available for this module

Link to this section Types

Link to this type

t()

View Source
t() :: %Membrane.Element.PortAudio.Sink{
  endpoint_id: integer() | :default,
  latency: :low | :high,
  portaudio_buffer_size: pos_integer(),
  ringbuffer_size: pos_integer()
}

Struct containing options for Membrane.Element.PortAudio.Sink

Link to this section Functions

Returns pads descriptions for Membrane.Element.PortAudio.Sink

Returns description of options available for this module