mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user