aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorNorbert Lange2009-07-01 23:11:56 +0000
committerNorbert Lange2009-07-01 23:11:56 +0000
commit9f8d9de11db887801940a042c59da9591b120bf5 (patch)
treec37cee8ea09630b6b0ed012a0d71d17370858891 /sound
parent7c7ad0d5f139e24a56da22123376452c87535669 (diff)
downloadscummvm-rg350-9f8d9de11db887801940a042c59da9591b120bf5.tar.gz
scummvm-rg350-9f8d9de11db887801940a042c59da9591b120bf5.tar.bz2
scummvm-rg350-9f8d9de11db887801940a042c59da9591b120bf5.zip
added a skeleton for maxtrax modules. Not much happening yet, just reading and displaying a bit of information for maxtrax file
svn-id: r42013
Diffstat (limited to 'sound')
-rw-r--r--sound/mods/maxtrax.cpp32
-rw-r--r--sound/mods/maxtrax.h43
-rw-r--r--sound/mods/tfmx.cpp2
-rw-r--r--sound/mods/tfmx.h2
-rw-r--r--sound/module.mk1
5 files changed, 78 insertions, 2 deletions
diff --git a/sound/mods/maxtrax.cpp b/sound/mods/maxtrax.cpp
new file mode 100644
index 0000000000..8fcc59b0fa
--- /dev/null
+++ b/sound/mods/maxtrax.cpp
@@ -0,0 +1,32 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
+#include "common/scummsys.h"
+#include "common/endian.h"
+#include "common/stream.h"
+#include "common/util.h"
+#include "common/debug.h"
+
+#include "sound/mods/maxtrax.h" \ No newline at end of file
diff --git a/sound/mods/maxtrax.h b/sound/mods/maxtrax.h
new file mode 100644
index 0000000000..8eb9d2ba51
--- /dev/null
+++ b/sound/mods/maxtrax.h
@@ -0,0 +1,43 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
+#ifndef SOUND_MODS_MAXTRAX_H
+#define SOUND_MODS_MAXTRAX_H
+
+#include "sound/mods/paula.h"
+
+namespace Audio {
+
+class MaxTrax : public Paula {
+public:
+ MaxTrax(int rate, bool stereo);
+ virtual ~MaxTrax();
+
+ void interrupt();
+};
+
+} // End of namespace Audio
+
+#endif \ No newline at end of file
diff --git a/sound/mods/tfmx.cpp b/sound/mods/tfmx.cpp
index b0761efa62..b2826d6299 100644
--- a/sound/mods/tfmx.cpp
+++ b/sound/mods/tfmx.cpp
@@ -993,4 +993,4 @@ int Tfmx::doSfx(uint16 sfxIndex, bool unlockChannel) {
return -1;
}
-}
+} // End of namespace Audio
diff --git a/sound/mods/tfmx.h b/sound/mods/tfmx.h
index e06be89759..2f05b0da70 100644
--- a/sound/mods/tfmx.h
+++ b/sound/mods/tfmx.h
@@ -291,6 +291,6 @@ private:
void noteCommand(uint8 note, uint8 param1, uint8 param2, uint8 param3);
};
-}
+} // End of namespace Audio
#endif
diff --git a/sound/module.mk b/sound/module.mk
index 0c24e0cf0e..5f8ef0dbbe 100644
--- a/sound/module.mk
+++ b/sound/module.mk
@@ -24,6 +24,7 @@ MODULE_OBJS := \
vorbis.o \
wave.o \
mods/infogrames.o \
+ mods/maxtrax.o \
mods/module.o \
mods/protracker.o \
mods/paula.o \