diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-05-18 13:43:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 13:43:24 +0200 |
commit | 37efaad8fbfc7b263d1f077a3f12cbe46ae5a393 (patch) | |
tree | b6fbb317176f8a8dc044f7be916f7367edae998d /platform/android | |
parent | b5d0f2a8847f3ece4160e9d58ba4ffe4eddfd544 (diff) | |
parent | 90c7102b51e720d409e1e5597c7942b62e6a6e72 (diff) |
Merge pull request #38816 from Faless/js/fix_audio_driver_4.0
AudioDriverJavaScript buffer size calculation.
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/audio_driver_jandroid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/android/audio_driver_jandroid.cpp b/platform/android/audio_driver_jandroid.cpp index 0ace7d03a1..09c981b3fa 100644 --- a/platform/android/audio_driver_jandroid.cpp +++ b/platform/android/audio_driver_jandroid.cpp @@ -73,9 +73,9 @@ Error AudioDriverAndroid::init() { // __android_log_print(ANDROID_LOG_VERBOSE, "SDL", "SDL audio: opening device"); JNIEnv *env = ThreadAndroid::get_env(); - int mix_rate = GLOBAL_DEF_RST("audio/mix_rate", 44100); + int mix_rate = GLOBAL_GET("audio/mix_rate"); - int latency = GLOBAL_DEF_RST("audio/output_latency", 25); + int latency = GLOBAL_GET("audio/output_latency"); unsigned int buffer_size = next_power_of_2(latency * mix_rate / 1000); print_verbose("Audio buffer size: " + itos(buffer_size)); |