Reverted my audio optimization - it makes things worse - each flush() outputs to logcat on my Evo
This commit is contained in:
@@ -35,15 +35,19 @@ class AudioThread {
|
|||||||
|
|
||||||
public int fillBuffer()
|
public int fillBuffer()
|
||||||
{
|
{
|
||||||
if( Globals.AudioBufferConfig == 0 )
|
|
||||||
mAudio.flush();
|
|
||||||
mAudio.write( mAudioBuffer, 0, mVirtualBufSize );
|
|
||||||
if( mParent.isPaused() )
|
if( mParent.isPaused() )
|
||||||
{
|
{
|
||||||
try{
|
try{
|
||||||
Thread.sleep(200);
|
Thread.sleep(200);
|
||||||
} catch (InterruptedException e) {}
|
} 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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user