From 9f8d9de11db887801940a042c59da9591b120bf5 Mon Sep 17 00:00:00 2001 From: Norbert Lange Date: Wed, 1 Jul 2009 23:11:56 +0000 Subject: added a skeleton for maxtrax modules. Not much happening yet, just reading and displaying a bit of information for maxtrax file svn-id: r42013 --- sound/mods/maxtrax.cpp | 32 ++++++++++++++++++++++++++++++++ sound/mods/maxtrax.h | 43 +++++++++++++++++++++++++++++++++++++++++++ sound/mods/tfmx.cpp | 2 +- sound/mods/tfmx.h | 2 +- sound/module.mk | 1 + 5 files changed, 78 insertions(+), 2 deletions(-) create mode 100644 sound/mods/maxtrax.cpp create mode 100644 sound/mods/maxtrax.h (limited to 'sound') 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 \ -- cgit v1.2.3