From 25ab9292e4d12ac92eae4d1e06716361203c5509 Mon Sep 17 00:00:00 2001 From: raven02 Date: Fri, 12 Apr 2013 14:03:51 -0700 Subject: [PATCH] Improve sound smoothness on Android --- Core/HLE/__sceAudio.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Core/HLE/__sceAudio.cpp b/Core/HLE/__sceAudio.cpp index c3b9182985..419646243f 100644 --- a/Core/HLE/__sceAudio.cpp +++ b/Core/HLE/__sceAudio.cpp @@ -37,13 +37,18 @@ int mixFrequency = 44100; const int hwSampleRate = 44100; const int hwBlockSize = 64; -const int hostAttemptBlockSize = 256; +const int hostAttemptBlockSize = 2048; const int audioIntervalUs = (int)(1000000ULL * hwBlockSize / hwSampleRate); const int audioHostIntervalUs = (int)(1000000ULL * hostAttemptBlockSize / hwSampleRate); // High and low watermarks, basically. -const int chanQueueMaxSizeFactor = 4; -const int chanQueueMinSizeFactor = 1; +#ifdef ANDROID + const int chanQueueMaxSizeFactor = 8; + const int chanQueueMinSizeFactor = 4; +#else + const int chanQueueMaxSizeFactor = 2; + const int chanQueueMinSizeFactor = 1; +#endif FixedSizeQueue outAudioQueue;