View Source Membrane.PortAudio.Source (Membrane PortAudio plugin v0.16.1)

Audio source that captures sound via multi-platform PortAudio library.

element-options

Element options

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

  • endpoint_id

    integer | :default

    Default value: :default
    PortAudio sound card id

  • 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

  • sample_rate

    non_neg_integer()

    Default value: nil
    Sample rate for input device.

    If not set, device's default sample rate will be used.

  • channels

    0..2

    Default value: 0
    Max number of channels that the device will be allowed to output

pads

Pads

output

:output

Accepted formats:

%RawAudio{sample_format: :s16le}
Direction::output
Availability::always
Flow control::push
Demand unit:nil

Link to this section Summary

Types

t()

Struct containing options for Membrane.PortAudio.Source

Functions

Returns description of options available for this module

Link to this section Types

@type t() :: %Membrane.PortAudio.Source{
  channels: 0..2,
  endpoint_id: integer() | :default,
  latency: :low | :high,
  portaudio_buffer_size: pos_integer(),
  sample_rate: non_neg_integer()
}

Struct containing options for Membrane.PortAudio.Source

Link to this section Functions

@spec options() :: keyword()

Returns description of options available for this module