feat(audio): custom surround-params (#2424)
This commit is contained in:
10
src/audio.h
10
src/audio.h
@@ -26,12 +26,20 @@ namespace audio {
|
||||
int bitrate;
|
||||
};
|
||||
|
||||
struct stream_params_t {
|
||||
int channelCount;
|
||||
int streams;
|
||||
int coupledStreams;
|
||||
std::uint8_t mapping[8];
|
||||
};
|
||||
|
||||
extern opus_stream_config_t stream_configs[MAX_STREAM_CONFIG];
|
||||
|
||||
struct config_t {
|
||||
enum flags_e : int {
|
||||
HIGH_QUALITY,
|
||||
HOST_AUDIO,
|
||||
CUSTOM_SURROUND_PARAMS,
|
||||
MAX_FLAGS
|
||||
};
|
||||
|
||||
@@ -39,6 +47,8 @@ namespace audio {
|
||||
int channels;
|
||||
int mask;
|
||||
|
||||
stream_params_t customStreamParams;
|
||||
|
||||
std::bitset<MAX_FLAGS> flags;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user