mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-25 03:10:31 +00:00
Merge branch 'patch-11' of https://github.com/raven02/ppsspp into raven02-patch-11
This commit is contained in:
commit
ffe88f5120
@ -37,13 +37,26 @@ int mixFrequency = 44100;
|
|||||||
|
|
||||||
const int hwSampleRate = 44100;
|
const int hwSampleRate = 44100;
|
||||||
const int hwBlockSize = 64;
|
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 audioIntervalUs = (int)(1000000ULL * hwBlockSize / hwSampleRate);
|
||||||
const int audioHostIntervalUs = (int)(1000000ULL * hostAttemptBlockSize / hwSampleRate);
|
const int audioHostIntervalUs = (int)(1000000ULL * hostAttemptBlockSize / hwSampleRate);
|
||||||
|
|
||||||
// High and low watermarks, basically.
|
// High and low watermarks, basically.
|
||||||
const int chanQueueMaxSizeFactor = 4;
|
// TODO: Tweak
|
||||||
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<s16, hostAttemptBlockSize * 16> outAudioQueue;
|
FixedSizeQueue<s16, hostAttemptBlockSize * 16> outAudioQueue;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user