From bc64da0469b1259bc3ba1d9418d24f791b8994b1 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Fri, 9 Dec 2011 20:56:48 +0100 Subject: [PATCH] Fixed bug in Music::SetPlayingOffset (didn't work above a given timestamp) --- src/SFML/Audio/SoundFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Audio/SoundFile.cpp b/src/SFML/Audio/SoundFile.cpp index a6178072..5fb75b63 100644 --- a/src/SFML/Audio/SoundFile.cpp +++ b/src/SFML/Audio/SoundFile.cpp @@ -257,7 +257,7 @@ void SoundFile::Seek(Uint32 timeOffset) { if (myFile) { - sf_count_t frameOffset = timeOffset * mySampleRate / 1000; + sf_count_t frameOffset = static_cast(timeOffset) * mySampleRate / 1000; sf_seek(myFile, frameOffset, SEEK_SET); } }