Sunshine master
Self-hosted game stream host for Moonlight.
audio::config_t Struct Reference

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

#include <src/audio.h>

Collaboration diagram for audio::config_t:
[legend]

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_FLAGSflags
 Enabled audio feature flags.
 
int mask
 Speaker mask describing the requested channel layout.
 
int packetDuration
 Packet duration in milliseconds requested by the client.
 

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: