aboutsummaryrefslogtreecommitdiff
path: root/engines/lastexpress/shared.h
diff options
context:
space:
mode:
authorEvgeny Grechnikov2018-10-18 00:38:01 +0300
committerEvgeny Grechnikov2018-10-18 00:38:01 +0300
commit54562554f9b274ce527a54e7fe87b8ff354fe0f4 (patch)
treee4389bd4af6e5fcef525bec17c92f35d12fdf443 /engines/lastexpress/shared.h
parentb7b5fbbad2808a0c5112bebbb59a5a1c43042e29 (diff)
downloadscummvm-rg350-54562554f9b274ce527a54e7fe87b8ff354fe0f4.tar.gz
scummvm-rg350-54562554f9b274ce527a54e7fe87b8ff354fe0f4.tar.bz2
scummvm-rg350-54562554f9b274ce527a54e7fe87b8ff354fe0f4.zip
LASTEXPRESS: better names in sound code
Refactoring, no changes in behaviour.
Diffstat (limited to 'engines/lastexpress/shared.h')
-rw-r--r--engines/lastexpress/shared.h46
1 files changed, 24 insertions, 22 deletions
diff --git a/engines/lastexpress/shared.h b/engines/lastexpress/shared.h
index c55829120d..a401e31006 100644
--- a/engines/lastexpress/shared.h
+++ b/engines/lastexpress/shared.h
@@ -31,24 +31,27 @@ namespace LastExpress {
// Sound
//////////////////////////////////////////////////////////////////////////
-enum SoundType {
- kSoundTypeNone = 0,
- kSoundType1,
- kSoundType2,
- kSoundType3,
- kSoundType4,
- kSoundType5,
- kSoundType6,
- kSoundType7,
- kSoundType8,
- kSoundType9,
- kSoundType10,
- kSoundType11,
- kSoundType12,
- kSoundType13,
- kSoundType14,
- kSoundType15,
- kSoundType16
+enum SoundTag {
+ kSoundTagNone = 0,
+ kSoundTagAmbient = 1,
+ kSoundTagOldAmbient = 2,
+ kSoundTagWalla = 3,
+ kSoundTagOldWalla = 4,
+ kSoundTagConcert = 5,
+ // 6 is unused
+ kSoundTagLink = 7,
+ kSoundTagOldLink = 8,
+ kSoundTagNIS = 9,
+ kSoundTagOldNIS = 10,
+ kSoundTagIntro = 11,
+ // 12 is unused
+ kSoundTagMenu = 13,
+ kSoundTagOldMenu = 14,
+ kSoundTagCredits = 15,
+ kSoundTagFirstNormal = 16
+ // every normal sound gets its own tag from an incrementing counter
+ // initialized as kSoundTagFirstNormal,
+ // so tags can have values not covered by this enum
};
/*
@@ -158,10 +161,9 @@ enum SoundFlag {
kSoundFlagUnmuteRequested = 0x80000000 // purely informational
};
-enum SoundState {
- kSoundStateNone = 0,
- kSoundState1 = 1,
- kSoundState2 = 2
+enum AmbientSoundState {
+ kAmbientSoundEnabled = 1,
+ kAmbientSoundSteam = 2
};
//////////////////////////////////////////////////////////////////////////