![]() |
Sunshine latest
Self-hosted game stream host for Moonlight.
|
Declarations for audio capture and encoding. More...
Go to the source code of this file.
Classes | |
struct | audio::audio_ctx_t |
struct | audio::config_t |
struct | audio::opus_stream_config_t |
struct | audio::stream_params_t |
Typedefs | |
using | audio::audio_ctx_ref_t = safe::shared_t<audio_ctx_t>::ptr_t |
using | audio::buffer_t = util::buffer_t<std::uint8_t> |
using | audio::packet_t = std::pair<void *, buffer_t> |
Enumerations | |
enum | audio::stream_config_e : int { audio::STEREO , audio::HIGH_STEREO , audio::SURROUND51 , audio::HIGH_SURROUND51 , audio::SURROUND71 , audio::HIGH_SURROUND71 , audio::MAX_STREAM_CONFIG } |
Functions | |
void | audio::capture (safe::mail_t mail, config_t config, void *channel_data) |
audio_ctx_ref_t | audio::get_audio_ctx_ref () |
Get the reference to the audio context. | |
bool | audio::is_audio_ctx_sink_available (const audio_ctx_t &ctx) |
Check if the audio sink held by audio context is available. | |
Declarations for audio capture and encoding.
enum audio::stream_config_e : int |
audio_ctx_ref_t audio::get_audio_ctx_ref | ( | ) |
Get the reference to the audio context.
Examples
bool audio::is_audio_ctx_sink_available | ( | const audio_ctx_t & | ctx | ) |
Check if the audio sink held by audio context is available.
Examples