aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/player_v4a.h
diff options
context:
space:
mode:
authorNorbert Lange2009-06-12 20:10:27 +0000
committerNorbert Lange2009-06-12 20:10:27 +0000
commit62202a9de58aabbff1d94004cfe0f63fc5ae13aa (patch)
treed26139acf5afcd84f92843ccda08792cbd42526a /engines/scumm/player_v4a.h
parent14f1960c8fd2a012de8c800143a8c9cbed9b8afb (diff)
downloadscummvm-rg350-62202a9de58aabbff1d94004cfe0f63fc5ae13aa.tar.gz
scummvm-rg350-62202a9de58aabbff1d94004cfe0f63fc5ae13aa.tar.bz2
scummvm-rg350-62202a9de58aabbff1d94004cfe0f63fc5ae13aa.zip
Removed alot of the debug-output
created a class player_v4a to hook TFMX Playback into Scumm. Monkey Island has sound, but no sfx yet svn-id: r41480
Diffstat (limited to 'engines/scumm/player_v4a.h')
-rw-r--r--engines/scumm/player_v4a.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/engines/scumm/player_v4a.h b/engines/scumm/player_v4a.h
new file mode 100644
index 0000000000..ed9bc50120
--- /dev/null
+++ b/engines/scumm/player_v4a.h
@@ -0,0 +1,77 @@
+/* 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 SCUMM_PLAYER_V4A_H
+#define SCUMM_PLAYER_V4A_H
+
+#include "common/scummsys.h"
+#include "scumm/music.h"
+#include "sound/mixer.h"
+#include "sound/mods/tfmx.h"
+
+class Mixer;
+
+namespace Scumm {
+
+class ScummEngine;
+
+/**
+ * Scumm V4 Amiga sound/music driver.
+ */
+class Player_V4A : public MusicEngine {
+public:
+ Player_V4A(ScummEngine *scumm, Audio::Mixer *mixer);
+ virtual ~Player_V4A();
+
+ virtual void setMusicVolume(int vol);
+ virtual void startSound(int sound);
+ virtual void stopSound(int sound);
+ virtual void stopAllSounds();
+ virtual int getMusicTimer() const;
+ virtual int getSoundStatus(int sound) const;
+
+private:
+ ScummEngine *_vm;
+ Audio::Tfmx *_tfmxPlay;
+ Audio::Mixer *_mixer;
+ Audio::SoundHandle _musicHandle;
+
+ enum {V4A_MAXSFX = 8};
+
+ struct SoundSlot {
+ int id;
+ byte patternNum;
+ byte channel;
+ } _slots[V4A_MAXSFX];
+
+ int _musicId;
+
+ int getSlot (int id) const;
+ bool init();
+};
+
+} // End of namespace Scumm
+
+#endif