Browse Source

Doubled the default number of Android OpenSL buffers to avoid glitches on a wider range of devices by default

tags/2021-05-28
hogliux 8 years ago
parent
commit
f506cc7f5d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      modules/juce_audio_devices/native/juce_android_OpenSL.cpp

+ 2
- 2
modules/juce_audio_devices/native/juce_android_OpenSL.cpp View File

@@ -972,8 +972,8 @@ private:
{
// The number of buffers to enqueue needs to be at least two for the audio to use the low-latency
// audio path (see "Performance" section in ndk/docs/Additional_library_docs/opensles/index.html)
buffersToEnqueueForLowLatency = 2,
buffersToEnqueueSlowAudio = 4,
buffersToEnqueueForLowLatency = 4,
buffersToEnqueueSlowAudio = 8,
defaultBufferSizeIsMultipleOfNative = 1
};


Loading…
Cancel
Save