mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 03:04:31 +00:00
Add closest_power_of_2 func and implement mix_rate/latency on OS X
This commit is contained in:
parent
49028e0c49
commit
647c4ae5bf
25 changed files with 136 additions and 87 deletions
|
|
@ -440,7 +440,7 @@ void GDFunctions::call(Function p_func, const Variant **p_args, int p_arg_count,
|
|||
VALIDATE_ARG_COUNT(1);
|
||||
VALIDATE_ARG_NUM(0);
|
||||
int64_t num = *p_args[0];
|
||||
r_ret = nearest_power_of_2(num);
|
||||
r_ret = next_power_of_2(num);
|
||||
} break;
|
||||
case OBJ_WEAKREF: {
|
||||
VALIDATE_ARG_COUNT(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue