Skip to content

Commit 556e989

Browse files
author
dashodanger
committed
Web player update
1 parent 3af9bf0 commit 556e989

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

source_files/edge/i_sound.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static bool TryOpenSound(int want_freq, bool want_stereo)
6969
trydev.freq = want_freq;
7070
trydev.format = AUDIO_F32SYS;
7171
trydev.channels = want_stereo ? 2 : 1;
72-
trydev.samples = 512;
72+
trydev.samples = 1024;
7373
trydev.callback = SoundFillCallback;
7474

7575
current_sound_device = SDL_OpenAudioDevice(nullptr, 0, &trydev, &sound_device_check, 0);

source_files/edge/i_web.cc

+1-4
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,7 @@ extern "C"
149149

150150
void EMSCRIPTEN_KEEPALIVE WebMain(int argc, const char **argv)
151151
{
152-
// Note: We're using the max framerate which feels smoother in testing
153-
// Though raises a console error in debug warning about not using
154-
// requestAnimationFrame
155-
emscripten_set_main_loop(WebTick, 70, 0);
152+
emscripten_set_main_loop(WebTick, 0, 0);
156153

157154
emscripten_set_pointerlockchange_callback(EMSCRIPTEN_EVENT_TARGET_DOCUMENT, nullptr, 0,
158155
WebHandlePointerLockChange);

0 commit comments

Comments
 (0)