aboutsummaryrefslogtreecommitdiff
path: root/engines/made/pmvplayer.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2008-05-20 18:20:17 +0000
committerFilippos Karapetis2008-05-20 18:20:17 +0000
commitbf52cc2186375b7332ffa96f386f7aabbde4b26f (patch)
tree815637f689a91da31b2af1e6b51ca578ff634e61 /engines/made/pmvplayer.cpp
parente20abe228d2457a6d38c8f78b99926827bf2de00 (diff)
downloadscummvm-rg350-bf52cc2186375b7332ffa96f386f7aabbde4b26f.tar.gz
scummvm-rg350-bf52cc2186375b7332ffa96f386f7aabbde4b26f.tar.bz2
scummvm-rg350-bf52cc2186375b7332ffa96f386f7aabbde4b26f.zip
Clarification about the weird sound frequencies in PMV videos
svn-id: r32198
Diffstat (limited to 'engines/made/pmvplayer.cpp')
-rw-r--r--engines/made/pmvplayer.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/made/pmvplayer.cpp b/engines/made/pmvplayer.cpp
index 8180758d61..1a8ca9c50a 100644
--- a/engines/made/pmvplayer.cpp
+++ b/engines/made/pmvplayer.cpp
@@ -48,12 +48,15 @@ void PmvPlayer::play(const char *filename) {
readChunk(chunkType, chunkSize); // "MHED"
// TODO: Evaluate header
- //_fd->skip(0x3A);
uint frameDelay = _fd->readUint16LE();
_fd->skip(10);
uint soundFreq = _fd->readUint16LE();
- // FIXME: weird frequencies... (11127 or 22254)
+ // Note: There seem to be weird sound frequencies in PMV videos.
+ // Not sure why, but leaving those original frequencies intact
+ // results to sound being choppy. Therefore, we set them to more
+ // "common" values here (11025 instead of 11127 and 22050 instead
+ // of 22254)
if (soundFreq == 11127) soundFreq = 11025;
if (soundFreq == 22254) soundFreq = 22050;