You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Add 64-bit versions of core power of 2 functions
This commit is contained in:
@@ -129,7 +129,7 @@ Error AudioDriverWeb::init() {
|
||||
}
|
||||
mix_rate = audio_context.mix_rate;
|
||||
channel_count = audio_context.channel_count;
|
||||
buffer_length = closest_power_of_2((latency * mix_rate / 1000));
|
||||
buffer_length = closest_power_of_2(uint32_t(latency * mix_rate / 1000));
|
||||
Error err = create(buffer_length, channel_count);
|
||||
if (err != OK) {
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user