Membrane Element: PortAudio v0.2.1 Membrane.Element.PortAudio.Sink View Source
Audio sink that plays sound via multi-platform PortAudio library.
Link to this section Summary
Types
Struct containing options for Membrane.Element.PortAudio.Sink
Functions
Returns pads specification 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()
View Source
t() :: %Membrane.Element.PortAudio.Sink{
endpoint_id: integer() | :default,
ringbuffer_size: pos_integer(),
portaudio_buffer_size: pos_integer(),
latency: :low | :high
}
t() :: %Membrane.Element.PortAudio.Sink{ endpoint_id: integer() | :default, ringbuffer_size: pos_integer(), portaudio_buffer_size: pos_integer(), latency: :low | :high }
Struct containing options for Membrane.Element.PortAudio.Sink
latency
- Latency of the output deviceDefaults to
:high
portaudio_buffer_size
- Size of the portaudio buffer (in frames)Defaults to
256
ringbuffer_size
- Size of the ringbuffer (in frames)Defaults to
4096
endpoint_id
- PortAudio sound card idDefaults to
:default
Link to this section Functions
Link to this function
membrane_pads() View Source
Returns pads specification for Membrane.Element.PortAudio.Sink
They are the following:
Pad
:input
- availability:
:always
- caps:
Membrane.Caps.Audio.Raw
, params:channels
:2
,sample_rate
:48000
,format
::s16le
- demand unit:
:bytes
- direction:
:input
- mode:
:pull
- availability:
Link to this function
options()
View Source
options()
View Source
options() :: keyword()
options() :: keyword()
Returns description of options available for this module