macOS audio control state used to create microphone streams.
More...
|
| bool | is_sink_available (const std::string &sink) override |
| | Check if the audio sink is available in the system.
|
| |
| std::unique_ptr< mic_t > | microphone (const std::uint8_t *mapping, int channels, std::uint32_t sample_rate, std::uint32_t frame_size, bool continuous_audio, bool host_audio_enabled) override |
| | Create a microphone capture stream for the requested layout.
|
| |
| int | set_sink (const std::string &sink) override |
| | Update the sink value on the backend.
|
| |
| std::optional< sink_t > | sink_info () override |
| | Query host and virtual sink names available to Sunshine.
|
| |
| virtual | ~audio_control_t ()=default |
| | Destroy the audio control.
|
| |
|
|
AVCaptureDevice * | audio_capture_device {} |
| | Audio capture device.
|
| |
macOS audio control state used to create microphone streams.
◆ is_sink_available()
| bool platf::macos_audio_control_t::is_sink_available |
( |
const std::string & | sink | ) |
|
|
inlineoverridevirtual |
Check if the audio sink is available in the system.
- Parameters
-
- Returns
- True if available, false otherwise.
Implements platf::audio_control_t.
◆ microphone()
| std::unique_ptr< mic_t > platf::macos_audio_control_t::microphone |
( |
const std::uint8_t * | mapping, |
|
|
int | channels, |
|
|
std::uint32_t | sample_rate, |
|
|
std::uint32_t | frame_size, |
|
|
bool | continuous_audio, |
|
|
bool | host_audio_enabled ) |
|
inlineoverridevirtual |
Create a microphone capture stream for the requested layout.
- Parameters
-
| mapping | Opus channel mapping table for the requested layout. |
| channels | Number of audio channels in the stream. |
| sample_rate | Audio sample rate in hertz. |
| frame_size | Number of samples captured per audio frame. |
| continuous_audio | Continuous audio. |
| host_audio_enabled | Whether host playback should remain enabled during capture. |
- Returns
- Microphone capture object for the requested audio layout.
Implements platf::audio_control_t.
◆ set_sink()
| int platf::macos_audio_control_t::set_sink |
( |
const std::string & | sink | ) |
|
|
inlineoverridevirtual |
Update the sink value on the backend.
- Parameters
-
| sink | Audio sink name to route or capture. |
- Returns
- Status from updating sink.
Implements platf::audio_control_t.
◆ sink_info()
| std::optional< sink_t > platf::macos_audio_control_t::sink_info |
( |
| ) |
|
|
inlineoverridevirtual |
Query host and virtual sink names available to Sunshine.
- Returns
- Host and virtual sink names when the backend can report them.
Implements platf::audio_control_t.
The documentation for this struct was generated from the following file: