Reduce PCM buffer size for Android to avoid stalls

This commit is contained in:
raysan5 2016-04-17 14:48:20 +02:00
parent 17eefed08f
commit 9639b14e1b

View File

@ -57,8 +57,8 @@
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------
#define MUSIC_STREAM_BUFFERS 2 #define MUSIC_STREAM_BUFFERS 2
#if defined(PLATFORM_RPI) #if defined(PLATFORM_RPI) || defined(PLATFORM_ANDROID)
// NOTE: On RPI should be lower to avoid frame-stalls // NOTE: On RPI and Android should be lower to avoid frame-stalls
#define MUSIC_BUFFER_SIZE 4096*2 // PCM data buffer (short) - 16Kb (RPI) #define MUSIC_BUFFER_SIZE 4096*2 // PCM data buffer (short) - 16Kb (RPI)
#else #else
// NOTE: On HTML5 (emscripten) this is allocated on heap, by default it's only 16MB!...just take care... // NOTE: On HTML5 (emscripten) this is allocated on heap, by default it's only 16MB!...just take care...