Reverted my audio optimization - it makes things worse - each flush() outputs to logcat on my Evo

This commit is contained in:
pelya
2010-11-24 19:30:08 +02:00
parent 6ae5d2f2ae
commit cad90e4159

View File

@@ -35,15 +35,19 @@ class AudioThread {
public int fillBuffer()
{
if( Globals.AudioBufferConfig == 0 )
mAudio.flush();
mAudio.write( mAudioBuffer, 0, mVirtualBufSize );
if( mParent.isPaused() )
{
try{
Thread.sleep(200);
} catch (InterruptedException e) {}
}
else
{
//if( Globals.AudioBufferConfig == 0 ) // Gives too much spam to logcat, makes things worse
// mAudio.flush();
mAudio.write( mAudioBuffer, 0, mVirtualBufSize );
}
return 1;
}