Sunshine master
Self-hosted game stream host for Moonlight.
platf::mic_attr_t Struct Reference

PulseAudio recording stream and channel metadata. More...

Inheritance diagram for platf::mic_attr_t:
[legend]
Collaboration diagram for platf::mic_attr_t:
[legend]

Public Member Functions

capture_e sample (std::vector< float > &sample_buf) override
 Deliver a captured audio sample to Sunshine's audio pipeline.
 
- Public Member Functions inherited from platf::mic_t

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: