TOTALLY STUPID BUG how could I lose 3 days debugging it. SDL is working perfeclty, that was the application crashing which could not load music file.

This commit is contained in:
pelya
2010-07-01 18:48:00 +03:00
parent cacfd5760f
commit 2b2248f27f
3 changed files with 68 additions and 31 deletions

View File

@@ -34,14 +34,7 @@ class AudioThread {
public int fillBuffer()
{
Log.i("libSDL", "JNI: fillBuffer() enter, mAudioBuffer len " + String.valueOf(mAudioBuffer.length));
int ret = 0;
try{
ret = mAudio.write( mAudioBuffer, 0, mAudioBuffer.length );
} catch( Throwable t ) {
Log.i("libSDL", "JNI: fillBuffer() caught exception!");
}
Log.i("libSDL", "JNI: fillBuffer() exit, written " + String.valueOf(ret));
mAudio.write( mAudioBuffer, 0, mAudioBuffer.length );
return 1;
}