[Scummvm-cvs-logs] SF.net SVN: scummvm:[34799] tools/trunk/compress.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Tue Oct 14 00:52:06 CEST 2008


Revision: 34799
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34799&view=rev
Author:   eriktorbjorn
Date:     2008-10-13 22:52:05 +0000 (Mon, 13 Oct 2008)

Log Message:
-----------
Explicitly use --little-endian and --big-endian to tell LAME the byte order of
16-bit raw audio data. The -x option that we used to indicate little-endian
before actually seems to mean "this is non-native byte order".

This seems to fix MP3-encoded speech in Broken Sword 1. I don't know which other
compression tools are affected.

Modified Paths:
--------------
    tools/trunk/compress.cpp

Modified: tools/trunk/compress.cpp
===================================================================
--- tools/trunk/compress.cpp	2008-10-13 19:17:51 UTC (rev 34798)
+++ tools/trunk/compress.cpp	2008-10-13 22:52:05 UTC (rev 34799)
@@ -111,7 +111,9 @@
 			tmp += sprintf(tmp, "--bitwidth %d ", rawAudioType.bitsPerSample);
 
 			if (rawAudioType.isLittleEndian) {
-				tmp += sprintf(tmp, "-x ");
+				tmp += sprintf(tmp, "--little-endian ");
+			} else {
+				tmp += sprintf(tmp, "--big-endian ");
 			}
 
 			tmp += sprintf(tmp, (rawAudioType.isStereo ? "-m j " : "-m m "));


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