Rework audio renderer selection to fall back and treat ML_AUDIO as a hard selection

This commit is contained in:
Cameron Gutman 2019-07-26 12:50:45 -04:00
commit 7acf91883a
3 changed files with 93 additions and 53 deletions

View file

@ -66,13 +66,11 @@ private:
StreamingPreferences::VideoDecoderSelection vds,
int videoFormat, int width, int height, int frameRate);
IAudioRenderer* createAudioRenderer();
int detectAudioConfiguration();
IAudioRenderer* createAudioRenderer(const POPUS_MULTISTREAM_CONFIGURATION opusConfig);
bool testAudio(int audioConfiguration);
int getAudioRendererCapabilities();
int getAudioRendererCapabilities(int audioConfiguration);
void getWindowDimensions(int& x, int& y,
int& width, int& height);