aboutsummaryrefslogtreecommitdiff
path: root/simon/simon.h
diff options
context:
space:
mode:
authorLudvig Strigeus2002-04-14 18:13:08 +0000
committerLudvig Strigeus2002-04-14 18:13:08 +0000
commitac62a7cb2e17a86350681366d768a99db3b9845d (patch)
tree48a6f9eca1242f7ebf03f05835372811a4048f7a /simon/simon.h
parenta5e3dbb85dad96d8ffb6205e07d12ff8396ba5c7 (diff)
downloadscummvm-rg350-ac62a7cb2e17a86350681366d768a99db3b9845d.tar.gz
scummvm-rg350-ac62a7cb2e17a86350681366d768a99db3b9845d.tar.bz2
scummvm-rg350-ac62a7cb2e17a86350681366d768a99db3b9845d.zip
wrote new mixer class,
cleaned up sound header files, integrated mixer into scummvm & simon svn-id: r3937
Diffstat (limited to 'simon/simon.h')
-rw-r--r--simon/simon.h40
1 files changed, 28 insertions, 12 deletions
diff --git a/simon/simon.h b/simon/simon.h
index a4067dad26..a4391e482f 100644
--- a/simon/simon.h
+++ b/simon/simon.h
@@ -1,12 +1,22 @@
-/* Copyright ©2002, The ScummVM Team.
+/* ScummVM - Scumm Interpreter
+ * Copyright (C) 2001/2002 The ScummVM project
+ *
+ * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Header$
*
- * Current status:
- * Save/Load dialog doesn't work. You can still save, but only to ONE slot.
- * There is possibly one or two problems that makes it impossible to finish SIMON1WIN.
- * Sound & Music only works with SIMON1WIN.
- * SIMON1DOS works, but without sound & music.
- * Simon 2 works a little.
- * The code only compiles in win32. It's currently not alignment safe and not endian safe.
*/
/* GFX Settings. Sound & Music only works properly with SIMON1WIN */
@@ -504,10 +514,10 @@ public:
uint _invoke_timer_callback;
- uint32 _voice_size;
+// uint32 _voice_size;
- uint32 _sound_size;
- byte *_sound_ptr;
+// uint32 _sound_size;
+// byte *_sound_ptr;
uint _vga_sprite_changed;
@@ -542,6 +552,8 @@ public:
byte _fcs_data_1[8];
bool _fcs_data_2[8];
+ SoundMixer _mixer[1];
+
ThreeValues _threevalues_1, _threevalues_2, _threevalues_3, _threevalues_4;
int _free_string_slot;
@@ -574,6 +586,9 @@ public:
int _num_screen_updates;
int _vga_tick_counter;
+ PlayingSoundHandle _playing_sound;
+ PlayingSoundHandle _voice_sound;
+
int _timer_id;
FILE *_dump_file;
@@ -994,7 +1009,8 @@ public:
void playVoice(uint voice);
void playSound(uint sound);
- void generateSound(byte *ptr, int len);
+
+// void generateSound(byte *ptr, int len);
void playMusic(uint music);