Merge branch 'patch-11' of https://github.com/raven02/ppsspp into raven02-patch-11

This commit is contained in:
Henrik Rydgard 2013-04-13 22:10:02 +02:00
commit ffe88f5120

View File

@ -37,13 +37,26 @@ int mixFrequency = 44100;
const int hwSampleRate = 44100;
const int hwBlockSize = 64;
const int hostAttemptBlockSize = 256;
// TODO: Tweak
#ifdef ANDROID
const int hostAttemptBlockSize = 2048;
#else
const int hostAttemptBlockSize = 512;
#endif
const int audioIntervalUs = (int)(1000000ULL * hwBlockSize / hwSampleRate);
const int audioHostIntervalUs = (int)(1000000ULL * hostAttemptBlockSize / hwSampleRate);
// High and low watermarks, basically.
const int chanQueueMaxSizeFactor = 4;
// TODO: Tweak
#ifdef ANDROID
const int chanQueueMaxSizeFactor = 8;
const int chanQueueMinSizeFactor = 4;
#else
const int chanQueueMaxSizeFactor = 2;
const int chanQueueMinSizeFactor = 1;
#endif
FixedSizeQueue<s16, hostAttemptBlockSize * 16> outAudioQueue;