Sunshine0.0.5917
Sunshine 0.0.5917
Self-hosted game stream host for Moonlight.
Loading...
Searching...
No Matches
platf::mic_attr_t Struct Reference

PulseAudio recording stream and channel metadata. More...

Inheritance diagram for platf::mic_attr_t:
Collaboration diagram for platf::mic_attr_t:

Public Member Functions

capture_e sample (std::vector< float > &sample_buf) override
 Deliver a captured audio sample to Sunshine's audio pipeline.

Public Attributes

util::safe_ptr< pa_simple, &pa_simple_free > mic
 PulseAudio simple recording stream for microphone capture.

Detailed Description

PulseAudio recording stream and channel metadata.

Member Function Documentation

◆ sample()

capture_e platf::mic_attr_t::sample ( std::vector< float > & sample_buf)
inlineoverridevirtual

Deliver a captured audio sample to Sunshine's audio pipeline.

Parameters
sample_bufSample buf.
Returns
Capture status reported to the streaming pipeline.

Implements platf::mic_t.


The documentation for this struct was generated from the following file: