aboutsummaryrefslogtreecommitdiff
path: root/tfmx
diff options
context:
space:
mode:
authorNorbert Lange2009-06-30 17:41:24 +0000
committerNorbert Lange2009-06-30 17:41:24 +0000
commite3a5da7b7ed1581e31b47dceabddb46f49b29cd7 (patch)
tree61b00799ab74383ec024a7b345d9506c35863b17 /tfmx
parentcf351dffe6f91e43496080aba2b9df51aa10f061 (diff)
downloadscummvm-rg350-e3a5da7b7ed1581e31b47dceabddb46f49b29cd7.tar.gz
scummvm-rg350-e3a5da7b7ed1581e31b47dceabddb46f49b29cd7.tar.bz2
scummvm-rg350-e3a5da7b7ed1581e31b47dceabddb46f49b29cd7.zip
engines/scumm/*: enabled choosing of the colorpalette, by setting RenderMode to EGA the "old" palette will be used
tfmx/tfmxplayer.cpp: removed some unused stuff sound/mods/tfmx.cpp: emulating the way MI initialises new macro-programms. (Difference might not be audible at all) svn-id: r41976
Diffstat (limited to 'tfmx')
-rw-r--r--tfmx/tfmxplayer.cpp39
1 files changed, 0 insertions, 39 deletions
diff --git a/tfmx/tfmxplayer.cpp b/tfmx/tfmxplayer.cpp
index fe4ef0cf88..efc3ce68b1 100644
--- a/tfmx/tfmxplayer.cpp
+++ b/tfmx/tfmxplayer.cpp
@@ -16,48 +16,9 @@
using namespace Common;
-void simplePlaybacktest(int argc, const char *const argv[]) {
- const char *modFilename = "mod.protracker";
- if (argc == 2)
- modFilename = argv[1];
-
-
- // get Mixer, assume this never fails
- Audio::Mixer *mixer = g_system->getMixer();
-
- FSNode fileDir(FILEDIR);
- debug( "searching for Files in Directory: %s", fileDir.getPath().c_str());
-
- FSNode musicFile = fileDir.getChild(modFilename);
-
- SeekableReadStream *fileIn = musicFile.createReadStream();
- if (0 == fileIn) {
- debug( "cant open File %s", musicFile.getName().c_str());
- return;
- }
-
- Audio::AudioStream *stream = Audio::makeProtrackerStream(fileIn);
- delete fileIn;
- if (0 == stream) {
- debug( "cant open File %s as Protacker-Stream", musicFile.getName().c_str());
- return;
- }
-
- Audio::SoundHandle soundH;
-
- mixer->playInputStream(Audio::Mixer::kMusicSoundType, &soundH, stream);
- while (mixer->isSoundHandleActive(soundH))
- g_system->delayMillis(1000);
-
-
- //mixer->stopAll();
-}
-
#define MUSICFILE "mdat.monkey"
#define SAMPLEFILE "smpl.monkey"
-//#define MUSICFILE "mdat.tworld_1"
-//#define SAMPLEFILE "smpl.tworld_1"
Audio::Tfmx *loadTfmxfile(const char *mdatName, const char *sampleName) {
FSNode fileDir(FILEDIR);
FSNode musicNode = fileDir.getChild(mdatName);