Move audio renderer destruction back off the main thread now that we're using atexit(SDL_Quit)

This commit is contained in:
Cameron Gutman
2018-09-30 18:09:12 -07:00
parent f7789a1e4a
commit c239d0814b
3 changed files with 7 additions and 29 deletions

View File

@@ -54,8 +54,6 @@ private:
int detectAudioConfiguration();
void cleanupAudioRendererOnMainThread();
bool testAudio(int audioConfiguration);
void getWindowDimensions(int& x, int& y,
@@ -126,7 +124,6 @@ private:
short m_OpusDecodeBuffer[MAX_CHANNELS * SAMPLES_PER_FRAME];
IAudioRenderer* m_AudioRenderer;
OPUS_MULTISTREAM_CONFIGURATION m_AudioConfig;
SDL_SpinLock m_AudioRendererLock;
static AUDIO_RENDERER_CALLBACKS k_AudioCallbacks;
static CONNECTION_LISTENER_CALLBACKS k_ConnCallbacks;