View Source Membrane.PortAudio.Sink (Membrane PortAudio plugin v0.19.2)

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

Element options

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

  • device_id

    integer | :default

    Default value: :default
    PortAudio device id. Defaults to the default output device.

    You can list available devices with mix pa_devices or Membrane.PortAudio.print_devices/0.

  • endpoint_id

    nil

    Default value: nil
    Deprecated. Please use device_id instead.

  • ringbuffer_size

    pos_integer

    Default value: 4096
    Size of the ringbuffer (in frames)

  • portaudio_buffer_size

    pos_integer

    Default value: 256
    Size of the portaudio buffer (in frames)

  • latency

    :low | :high

    Default value: :high
    Latency of the output device

Pads

:input

Accepted formats:

%RawAudio{sample_format: format} when format in [:f32le, :s32le, :s24le, :s16le, :s8, :u8]
Direction::input
Availability::always
Flow control::manual
Demand unit::bytes

Clock

This element provides a clock to its parent.

This clock measures time by counting a number of samples consumed by a PortAudio device and allows synchronization with it.

Summary

Types

t()

Struct containing options for Membrane.PortAudio.Sink

Functions

Returns description of options available for this module

Types

@type t() :: %Membrane.PortAudio.Sink{
  device_id: integer() | :default,
  endpoint_id: nil,
  latency: :low | :high,
  portaudio_buffer_size: pos_integer(),
  ringbuffer_size: pos_integer()
}

Struct containing options for Membrane.PortAudio.Sink

Functions

@spec options() :: keyword()

Returns description of options available for this module