aboutsummaryrefslogtreecommitdiff
path: root/simon/sound.h
diff options
context:
space:
mode:
authorMax Horn2005-05-08 12:33:25 +0000
committerMax Horn2005-05-08 12:33:25 +0000
commitbd8831487f9b1acb5f81986832e532f49544e5bd (patch)
tree8f598e7f5532c53c1c7907a2cd4d897fbc71e134 /simon/sound.h
parent33cc1176a0305864139cc7f946f4ac580bf4c656 (diff)
downloadscummvm-rg350-bd8831487f9b1acb5f81986832e532f49544e5bd.tar.gz
scummvm-rg350-bd8831487f9b1acb5f81986832e532f49544e5bd.tar.bz2
scummvm-rg350-bd8831487f9b1acb5f81986832e532f49544e5bd.zip
Renamed variables to match our naming conventions; added Sound::isVoiceActive() method; made some more members of class Sound private
svn-id: r17958
Diffstat (limited to 'simon/sound.h')
-rw-r--r--simon/sound.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/simon/sound.h b/simon/sound.h
index 69b5040f2d..ad0b535f5f 100644
--- a/simon/sound.h
+++ b/simon/sound.h
@@ -42,17 +42,17 @@ private:
uint16 *_filenums;
uint32 *_offsets;
- uint16 _last_voice_file;
+ uint16 _lastVoiceFile;
-public:
- SoundHandle _voice_handle;
- SoundHandle _effects_handle;
- SoundHandle _ambient_handle;
+ SoundHandle _voiceHandle;
+ SoundHandle _effectsHandle;
+ SoundHandle _ambientHandle;
- bool _effects_file;
- bool _voice_file;
- uint _ambient_playing;
+ bool _hasEffectsFile;
+ bool _hasVoiceFile;
+ uint _ambientPlaying;
+public:
Sound(const byte game, const GameSpecificSettings *gss, SoundMixer *mixer);
~Sound();
@@ -64,7 +64,8 @@ public:
void playEffects(uint sound);
void playAmbient(uint sound);
- bool hasVoice();
+ bool hasVoice() const;
+ bool isVoiceActive() const;
void stopVoice();
void stopAll();
void effectsPause(bool b);