diff options
author | Ludvig Strigeus | 2002-04-14 18:13:08 +0000 |
---|---|---|
committer | Ludvig Strigeus | 2002-04-14 18:13:08 +0000 |
commit | ac62a7cb2e17a86350681366d768a99db3b9845d (patch) | |
tree | 48a6f9eca1242f7ebf03f05835372811a4048f7a /scumm.h | |
parent | a5e3dbb85dad96d8ffb6205e07d12ff8396ba5c7 (diff) | |
download | scummvm-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 'scumm.h')
-rw-r--r-- | scumm.h | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -21,6 +21,7 @@ #include "scummsys.h" #include "system.h" +#include "mixer.h" #ifdef COMPRESSED_SOUND_FILE #include <mad.h> @@ -35,6 +36,7 @@ class GameDetector; class Gui; class Scumm; +class IMuse; struct Actor; struct ScummDebugger; struct Serializer; @@ -549,7 +551,6 @@ enum MouseButtonStatus { #include "gfx.h" #include "boxes.h" -#include "sound.h" #include "akos.h" #include "smush.h" @@ -559,7 +560,7 @@ public: * That results in a shorter form of the opcode * on some architectures. */ OSystem *_system; - void *_soundEngine; + IMuse *_imuse; Gui *_gui; uint32 _features; VerbSlot *_verbs; @@ -939,10 +940,10 @@ public: void runVerbCode(int script, int entry, int a, int b, int16 *vars); void setVerbObject(uint room, uint object, uint verb); - /* Should be in Sound class */ - MixerChannel _mixer_channel[NUM_MIXER]; - int _gameTempo; + SoundMixer _mixer[1]; + +// MixerChannel _mixer_channel[NUM_MIXER]; byte _sfxMode; bool _use_adlib; int16 _sound_volume_master, _sound_volume_music, _sound_volume_sfx; @@ -982,13 +983,11 @@ public: int num_sound_effects; // SO3 MP3 compressed audio void pauseSounds(bool pause); - MixerChannel *allocateMixer(); bool isSfxFinished(); void playBundleSound(char *sound); void playSfxSound(void *sound, uint32 size, uint rate); - void playSfxSound_MP3(void *sound, uint32 size); + void playSfxSound_MP3(void *sound, uint32 size); void stopSfxSound(); - void mixWaves(int16 *sounds, int len); bool _useTalkAnims; uint16 _defaultTalkDelay; @@ -1682,7 +1681,6 @@ public: void updateCursor(); void animateCursor(); void updatePalette(); - static void on_generate_samples(void *s, int16 *samples, int len); }; class Scumm_v3 : public Scumm @@ -1798,6 +1796,7 @@ struct Serializer { }; + extern const uint32 IMxx_tags[]; extern const byte default_scale_table[768]; |