Merge pull request #106606 from aaronfranke/pow2_64

Add 64-bit versions of core power of 2 functions
This commit is contained in:
Thaddeus Crews
2025-06-02 18:51:56 -05:00
25 changed files with 161 additions and 124 deletions

View File

@@ -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;