More random fixes

This commit is contained in:
pelya
2010-11-23 20:15:52 +02:00
parent 00a5ee79f8
commit 4bc5978d78
7 changed files with 49 additions and 15 deletions

View File

@@ -35,7 +35,14 @@ class AudioThread {
public int fillBuffer()
{
if( Globals.AudioBufferConfig == 0 && mAudio.getPlaybackHeadPosition() * 1000 / mAudio.getPlaybackRate() >= 30 )
{
try{
Thread.sleep(10);
} catch(InterruptedException e) {}
}
mAudio.write( mAudioBuffer, 0, mVirtualBufSize );
return 1;
}