From eab850524ead092ed9fe22e57955e59eae373b79 Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Thu, 17 Aug 2017 18:35:55 -0300 Subject: Add closest_power_of_2 func and implement mix_rate/latency on OS X --- platform/android/audio_driver_jandroid.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/android/audio_driver_jandroid.cpp') diff --git a/platform/android/audio_driver_jandroid.cpp b/platform/android/audio_driver_jandroid.cpp index d293f3ed30..763eff2863 100644 --- a/platform/android/audio_driver_jandroid.cpp +++ b/platform/android/audio_driver_jandroid.cpp @@ -81,7 +81,7 @@ Error AudioDriverAndroid::init() { int latency = GLOBAL_DEF("audio/output_latency", 25); latency = 50; - unsigned int buffer_size = nearest_power_of_2(latency * mix_rate / 1000); + unsigned int buffer_size = next_power_of_2(latency * mix_rate / 1000); if (OS::get_singleton()->is_stdout_verbose()) { print_line("audio buffer size: " + itos(buffer_size)); } -- cgit v1.2.3