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

Audio capture and encoder settings for a stream. More...

#include <src/audio.h>

Collaboration diagram for audio::config_t:

Public Types

enum  flags_e : int {
  HIGH_QUALITY , HOST_AUDIO , CUSTOM_SURROUND_PARAMS , CONTINUOUS_AUDIO ,
  MAX_FLAGS
}
 Boolean audio feature flags. More...

Public Attributes

int channels
 Number of audio channels requested by the client.
stream_params_t customStreamParams
 Custom Opus layout used when CUSTOM_SURROUND_PARAMS is enabled.
std::bitset< MAX_FLAGS > flags
 Enabled audio feature flags.
bool high_quality_dolby {false}
 Higher bitrate for Dolby only; ignored for Opus.
int mask
 Speaker mask describing the requested channel layout.
int packetDuration
 Packet duration in milliseconds requested by the client.
bool use_ac3 {false}
 Encode audio as AC-3 instead of Opus for this streaming session.
bool use_eac3 {false}
 Encode audio as E-AC-3 instead of Opus for this streaming session.

Detailed Description

Audio capture and encoder settings for a stream.

Member Enumeration Documentation

◆ flags_e

Boolean audio feature flags.

Enumerator
HIGH_QUALITY 

High quality audio.

HOST_AUDIO 

Host audio.

CUSTOM_SURROUND_PARAMS 

Custom surround parameters.

CONTINUOUS_AUDIO 

Continuous audio.

MAX_FLAGS 

Maximum number of flags.


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