diff options
Diffstat (limited to 'engines/toltecs/sound.h')
-rw-r--r-- | engines/toltecs/sound.h | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/engines/toltecs/sound.h b/engines/toltecs/sound.h index 02f7a96eb3..7552d85ae8 100644 --- a/engines/toltecs/sound.h +++ b/engines/toltecs/sound.h @@ -48,6 +48,13 @@ namespace Toltecs { // 0x1219 +enum SoundChannelType { + kChannelTypeEmpty = 0, + kChannelTypeBackground = -1, + kChannelTypeSfx = -2, + kChannelTypeSpeech = -3 +}; + struct SoundChannel { int16 resIndex; int16 type; @@ -56,22 +63,22 @@ struct SoundChannel { class Sound { public: - Sound(ToltecsEngine *vm); - ~Sound(); + Sound(ToltecsEngine *vm); + ~Sound(); - void playSpeech(int16 resIndex); - void playSound(int16 resIndex, int16 type, int16 volume); + void playSpeech(int16 resIndex); + void playSound(int16 resIndex, int16 type, int16 volume); void playSoundAtPos(int16 resIndex, int16 x, int16 y); void updateSpeech(); void stopSpeech(); protected: - ToltecsEngine *_vm; + ToltecsEngine *_vm; + + SoundChannel channels[4]; + + void internalPlaySound(int16 resIndex, int16 type, int16 volume, int16 panning); - SoundChannel channels[4]; - - void internalPlaySound(int16 resIndex, int16 type, int16 volume, int16 panning); - }; |