mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Tweak some values to help with sound choppiness in Chrome slightly, until we port to OpenAL
This commit is contained in:
@@ -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))
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user