diff --git a/src/host/emscripten/mod.rs b/src/host/emscripten/mod.rs index 21e8712..dbf5078 100644 --- a/src/host/emscripten/mod.rs +++ b/src/host/emscripten/mod.rs @@ -334,7 +334,7 @@ fn audio_callback_fn( // and there may be underflows set_timeout( || audio_callback_fn::(user_data_ptr, config, sample_format, buffer_size_frames), - buffer_size_frames * 1000 / sample_rate, + buffer_size_frames as u32 * 1000 / sample_rate, ); } }