Fixed file not closing after require(). Changed seek() to use seconds.

This commit is contained in:
rude
2009-08-24 19:57:08 +02:00
parent de4d9bf2d4
commit 92c678ce02
10 changed files with 50 additions and 21 deletions
+2 -2
View File
@@ -73,9 +73,9 @@ namespace lullaby
return bufferSize;
}
bool FLACDecoder::seek(int ms)
bool FLACDecoder::seek(float s)
{
return seek_absolute(ms);
return seek_absolute((int)(s*1000.0f));
}
bool FLACDecoder::rewind()