aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-27 08:08:33 +0000
committerJohannes Schickel2010-01-27 08:08:33 +0000
commit812603e29eef2bd0c224a9b3b4c2bf29b2d3b653 (patch)
tree63cb6f484d6ebaad723b589b2d99300bc452ed6b /engines/kyra
parent9f2a619c06851429e261264c7f4b18a75cd4d7fd (diff)
downloadscummvm-rg350-812603e29eef2bd0c224a9b3b4c2bf29b2d3b653.tar.gz
scummvm-rg350-812603e29eef2bd0c224a9b3b4c2bf29b2d3b653.tar.bz2
scummvm-rg350-812603e29eef2bd0c224a9b3b4c2bf29b2d3b653.zip
Fix invalid sample position on Timestamp to sample conversion for Stereo streams.
svn-id: r47591
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/sound_digital.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/sound_digital.cpp b/engines/kyra/sound_digital.cpp
index 393a2f3eda..7a04fc0691 100644
--- a/engines/kyra/sound_digital.cpp
+++ b/engines/kyra/sound_digital.cpp
@@ -356,7 +356,7 @@ int AUDStream::readChunk(int16 *buffer, const int maxSamples) {
}
bool AUDStream::seek(const Audio::Timestamp &where) {
- const uint32 seekSample = Audio::calculateSampleOffset(where, getRate());
+ const uint32 seekSample = Audio::convertTimeToStreamPos(where, getRate(), isStereo()).totalNumberOfFrames();
_stream->seek(_streamStart);
_processedSize = 0;