Use doubles instead of floats for the time argument in Source:seek. This probably won't affect anything meaningfully, but in theory it's more precise.

This commit is contained in:
Alex Szpakowski
2019-05-26 14:46:52 -03:00
parent 3c77edb68b
commit 38cb56f168
22 changed files with 39 additions and 37 deletions
+2 -2
View File
@@ -78,9 +78,9 @@ int FLACDecoder::decode()
return bufferSize;
}
bool FLACDecoder::seek(float s)
bool FLACDecoder::seek(double s)
{
return seek_absolute((int)(s*1000.0f));
return seek_absolute((int)(s*1000.0));
}
bool FLACDecoder::rewind()