Allow audio to recover if no audio devices were present during stream start

This commit is contained in:
Cameron Gutman
2024-05-04 21:13:00 -05:00
parent 93ed985043
commit 6d220a9062
3 changed files with 64 additions and 51 deletions
+4 -1
View File
@@ -79,6 +79,8 @@ private:
IAudioRenderer* createAudioRenderer(const POPUS_MULTISTREAM_CONFIGURATION opusConfig);
bool initializeAudioRenderer();
bool testAudio(int audioConfiguration);
int getAudioRendererCapabilities(int audioConfiguration);
@@ -184,7 +186,8 @@ private:
OpusMSDecoder* m_OpusDecoder;
IAudioRenderer* m_AudioRenderer;
OPUS_MULTISTREAM_CONFIGURATION m_AudioConfig;
OPUS_MULTISTREAM_CONFIGURATION m_ActiveAudioConfig;
OPUS_MULTISTREAM_CONFIGURATION m_OriginalAudioConfig;
int m_AudioSampleCount;
Uint32 m_DropAudioEndTime;