Move binary math functions to Math namespace in math_funcs_binary header.

This commit is contained in:
Lukas Tenbrink 2025-06-13 01:43:35 +02:00
parent 376903417d
commit 0ea5ece984
50 changed files with 330 additions and 286 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(uint32_t(latency * mix_rate / 1000));
buffer_length = Math::closest_power_of_2(uint32_t(latency * mix_rate / 1000));
Error err = create(buffer_length, channel_count);
if (err != OK) {
return err;