Skip to content

Commit

Permalink
Web player update
Browse files Browse the repository at this point in the history
  • Loading branch information
dashodanger committed Oct 17, 2024
1 parent 3af9bf0 commit 556e989
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion source_files/edge/i_sound.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static bool TryOpenSound(int want_freq, bool want_stereo)
trydev.freq = want_freq;
trydev.format = AUDIO_F32SYS;
trydev.channels = want_stereo ? 2 : 1;
trydev.samples = 512;
trydev.samples = 1024;
trydev.callback = SoundFillCallback;

current_sound_device = SDL_OpenAudioDevice(nullptr, 0, &trydev, &sound_device_check, 0);
Expand Down
5 changes: 1 addition & 4 deletions source_files/edge/i_web.cc
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,7 @@ extern "C"

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

emscripten_set_pointerlockchange_callback(EMSCRIPTEN_EVENT_TARGET_DOCUMENT, nullptr, 0,
WebHandlePointerLockChange);
Expand Down

0 comments on commit 556e989

Please sign in to comment.