[Scummvm-cvs-logs] SF.net SVN: scummvm:[46719] tools/branches/gsoc2009-gui/engines/scumm/ compress_scumm_san.cpp
sev at users.sourceforge.net
sev at users.sourceforge.net
Tue Dec 29 22:57:51 CET 2009
Revision: 46719
http://scummvm.svn.sourceforge.net/scummvm/?rev=46719&view=rev
Author: sev
Date: 2009-12-29 21:57:51 +0000 (Tue, 29 Dec 2009)
Log Message:
-----------
Fix compress_scumm_san. Now it works as expected.
Modified Paths:
--------------
tools/branches/gsoc2009-gui/engines/scumm/compress_scumm_san.cpp
Modified: tools/branches/gsoc2009-gui/engines/scumm/compress_scumm_san.cpp
===================================================================
--- tools/branches/gsoc2009-gui/engines/scumm/compress_scumm_san.cpp 2009-12-29 21:37:26 UTC (rev 46718)
+++ tools/branches/gsoc2009-gui/engines/scumm/compress_scumm_san.cpp 2009-12-29 21:57:51 UTC (rev 46719)
@@ -31,15 +31,18 @@
void CompressScummSan::encodeSanWaveWithOgg(const std::string &filename) {
std::string fbuf = filename + ".raw";
- std::string fbuf2 = filename + ".ogg";
- encodeAudio(fbuf.c_str(), true, 22050, fbuf2.c_str(), AUDIO_VORBIS);
+ Common::Filename fbuf2(filename.c_str());
+
+ fbuf2.setExtension(".ogg");
+ encodeAudio(fbuf.c_str(), true, 22050, fbuf2.getFullPath().c_str(), AUDIO_VORBIS);
}
void CompressScummSan::encodeSanWaveWithLame(const std::string &filename) {
std::string fbuf = filename + ".raw";
- std::string fbuf2 = filename + ".mp3";
+ Common::Filename fbuf2(filename.c_str());
- encodeAudio(fbuf.c_str(), true, 22050, fbuf2.c_str(), AUDIO_MP3);
+ fbuf2.setExtension(".mp3");
+ encodeAudio(fbuf.c_str(), true, 22050, fbuf2.getFullPath().c_str(), AUDIO_MP3);
}
void CompressScummSan::writeToTempWaveFile(const std::string &fileName, byte *output_data, unsigned int size) {
@@ -480,12 +483,10 @@
audioTrack->sizes[index] *= 2;
audioTrack->countFrames++;
-#if 0
- // FIXME. This doesn't work in many cases, particularly with more than 10 videos in FT
+ // FIXME. This doesn't work with Russian FT
if ((index + 1) >= nbframes) {
audioTrack->file.close();
}
-#endif
}
void CompressScummSan::handleDigIACT(Common::File &input, int size, const std::string &outputDir, const std::string &inputFilename,int flags, int track_flags, int frame) {
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