feat(audio): custom surround-params (#2424)

This commit is contained in:
Mariotaku
2024-06-01 11:50:34 +09:00
committed by GitHub
parent 7371a206a4
commit 17e0f1a816
8 changed files with 161 additions and 18 deletions

View File

@@ -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;
};