Tweak some values to help with sound choppiness in Chrome slightly, until we port to OpenAL

This commit is contained in:
elasota
2021-03-30 05:23:44 -04:00
parent 7916c72fc4
commit 3692a966bf
2 changed files with 2 additions and 2 deletions

View File

@@ -437,7 +437,7 @@ bool GpAudioDriver_SDL2::Init()
requestedSpec.channels = 1;
requestedSpec.format = AUDIO_S16;
requestedSpec.freq = m_properties.m_sampleRate;
requestedSpec.samples = 512;
requestedSpec.samples = 1024;
requestedSpec.userdata = this;
if (SDL_OpenAudio(&requestedSpec, nullptr))

View File

@@ -3095,7 +3095,7 @@ bool GpDisplayDriver_SDL_GL2::SyncRender()
SDL_GL_SwapWindow(m_window);
#ifdef __EMSCRIPTEN__
emscripten_sleep(16);
emscripten_sleep(1);
#endif
std::chrono::time_point<std::chrono::high_resolution_clock>::duration syncTime = std::chrono::high_resolution_clock::now().time_since_epoch();