Fixed bug in Music::SetPlayingOffset (didn't work above a given timestamp)

This commit is contained in:
Laurent Gomila 2011-12-09 20:56:48 +01:00
parent 92f14fa853
commit bc64da0469

View File

@ -257,7 +257,7 @@ void SoundFile::Seek(Uint32 timeOffset)
{
if (myFile)
{
sf_count_t frameOffset = timeOffset * mySampleRate / 1000;
sf_count_t frameOffset = static_cast<sf_count_t>(timeOffset) * mySampleRate / 1000;
sf_seek(myFile, frameOffset, SEEK_SET);
}
}