diff options
| author | Juan Linietsky <reduzio@gmail.com> | 2018-07-19 18:58:15 -0300 |
|---|---|---|
| committer | Juan Linietsky <reduzio@gmail.com> | 2018-07-19 19:02:04 -0300 |
| commit | c69de2ba46463adeadf90f38660d6b6e034d7e0b (patch) | |
| tree | ddeb1c8e40c080a6544eba86fc12f138b54be0ed /platform/android/audio_driver_jandroid.cpp | |
| parent | 76bfe14e00ee5c8b65275d8b8e0c4cdc25b4b899 (diff) | |
| download | redot-engine-c69de2ba46463adeadf90f38660d6b6e034d7e0b.tar.gz | |
-Project/Editor settings now use new inspector
-Project/Editor settings now show tooltips properly
-Settings thar require restart now will show a restart warning
-Video driver is now visible all the time, can be changed easily
-Added function to request current video driver
Diffstat (limited to 'platform/android/audio_driver_jandroid.cpp')
| -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 3d80e76707..b9f1f1eab0 100644 --- a/platform/android/audio_driver_jandroid.cpp +++ b/platform/android/audio_driver_jandroid.cpp @@ -78,9 +78,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("audio/mix_rate", 44100); + int mix_rate = GLOBAL_DEF_RST("audio/mix_rate", 44100); - int latency = GLOBAL_DEF("audio/output_latency", 25); + int latency = GLOBAL_DEF_RST("audio/output_latency", 25); 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)); |
