Permalink
Browse files

audio: algorithm tweaks

  • Loading branch information...
fzurita committed Feb 29, 2016
1 parent 33bce74 commit 37c59575914fbc188b5e2183db8f2d6e818da716
Showing with 2 additions and 1 deletion.
  1. +2 −1 jni/mupen64plus-audio-sles/main.cpp
@@ -826,7 +826,8 @@ void* audioConsumer(void* param)
waitTime.tv_sec = 1;
waitTime.tv_nsec = 0;
- const int feedTimeWindowSize = 10;
+ //use the smallest of the two
+ int feedTimeWindowSize = TargetSecondaryBuffers >= 10 ? 10 : TargetSecondaryBuffers;
int feedTimeIndex = 0;
bool feedTimesSet = false;
float timePerBuffer = 1.0*SecondaryBufferSize/GameFreq;

0 comments on commit 37c5957

Please sign in to comment.