[Scummvm-cvs-logs] SF.net SVN: scummvm: [32198] scummvm/trunk/engines/made/pmvplayer.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Tue May 20 20:20:18 CEST 2008


Revision: 32198
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32198&view=rev
Author:   thebluegr
Date:     2008-05-20 11:20:17 -0700 (Tue, 20 May 2008)

Log Message:
-----------
Clarification about the weird sound frequencies in PMV videos

Modified Paths:
--------------
    scummvm/trunk/engines/made/pmvplayer.cpp

Modified: scummvm/trunk/engines/made/pmvplayer.cpp
===================================================================
--- scummvm/trunk/engines/made/pmvplayer.cpp	2008-05-20 18:19:32 UTC (rev 32197)
+++ scummvm/trunk/engines/made/pmvplayer.cpp	2008-05-20 18:20:17 UTC (rev 32198)
@@ -48,12 +48,15 @@
 	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;
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list