From bf52cc2186375b7332ffa96f386f7aabbde4b26f Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 20 May 2008 18:20:17 +0000 Subject: Clarification about the weird sound frequencies in PMV videos svn-id: r32198 --- engines/made/pmvplayer.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'engines') 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; -- cgit v1.2.3