fixed mismatched types in emscipten set_timeout

This commit is contained in:
JoshuaBatty 2020-07-14 13:41:30 +02:00
parent 4ce12a69b9
commit f285389002
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ fn audio_callback_fn<D, E>(
// and there may be underflows
set_timeout(
|| audio_callback_fn::<D, E>(user_data_ptr, config, sample_format, buffer_size_frames),
buffer_size_frames * 1000 / sample_rate,
buffer_size_frames as u32 * 1000 / sample_rate,
);
}
}