mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-12-14 20:19:38 +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.channels = 1;
|
||||||
requestedSpec.format = AUDIO_S16;
|
requestedSpec.format = AUDIO_S16;
|
||||||
requestedSpec.freq = m_properties.m_sampleRate;
|
requestedSpec.freq = m_properties.m_sampleRate;
|
||||||
requestedSpec.samples = 512;
|
requestedSpec.samples = 1024;
|
||||||
requestedSpec.userdata = this;
|
requestedSpec.userdata = this;
|
||||||
|
|
||||||
if (SDL_OpenAudio(&requestedSpec, nullptr))
|
if (SDL_OpenAudio(&requestedSpec, nullptr))
|
||||||
|
|||||||
@@ -3095,7 +3095,7 @@ bool GpDisplayDriver_SDL_GL2::SyncRender()
|
|||||||
SDL_GL_SwapWindow(m_window);
|
SDL_GL_SwapWindow(m_window);
|
||||||
|
|
||||||
#ifdef __EMSCRIPTEN__
|
#ifdef __EMSCRIPTEN__
|
||||||
emscripten_sleep(16);
|
emscripten_sleep(1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::chrono::time_point<std::chrono::high_resolution_clock>::duration syncTime = std::chrono::high_resolution_clock::now().time_since_epoch();
|
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