Commit Graph
14 Commits
Author SHA1 Message Date
Evgeny Grechnikov 54562554f9 LASTEXPRESS: better names in sound code
Refactoring, no changes in behaviour.
2018-10-18 00:38:01 +03:00
Evgeny Grechnikov 53cd6616c9 LASTEXPRESS: refactor sound flags
Merge SoundFlag and SoundStatus into a single enum;
SoundEntry::setupStatus just casts one to another.

Keep only definitions of bits in SoundFlag; drop compound flags
like kFlagSteam = kSoundTypeAmbient | kSoundFlagLooped | kVolume7,
use ORed simple flags in calls; change the signature
of SoundManager::playSoundWithSubtitles to use uint32
instead of SoundFlag to avoid excess casting.

Add meaningful names to flags; add some comments.

Get rid of endian-unsafe SoundStatusUnion.

Fixes an issue with big-endian hosts.
No changes in behaviour on little-endian hosts.
2018-10-14 20:08:32 +03:00
Adrian Frühwirth 0524ff6e8d JANITORIAL: Silence GCC 7 fallthrough warnings 2018-03-23 18:34:17 +01:00
Johannes Schickel 3d4f409572 LASTEXPRESS: Make GPL headers consistent in themselves. 2014-02-18 02:39:35 +01:00
Littleboy 6ab8db638e LASTEXPRESS: Implement more savegame loading
- Rename existing function to load the last saved game
 - Remove loadgame debugger command
2012-08-27 23:30:23 -04:00
Littleboy 94e2ea10cd LASTEXPRESS: Add menu-related warnings and turn some warnings into errors 2012-07-27 13:42:06 -04:00
Littleboy 6aeda2638b LASTEXPRESS: More include re-organization 2012-07-27 00:54:24 -04:00
Littleboy 732a2c80dd LASTEXPRESS: Remove duplicated include statements 2012-07-14 13:23:54 -04:00
Littleboy b4ac4988cc LASTEXPRESS: Cleanup comments 2011-06-28 22:54:51 -04:00
Littleboy 90dc4f9a8c LASTEXPRESS: Move Sound class to the sound folder 2011-06-28 22:30:24 -04:00
Littleboy 6eace0ca75 LASTEXPRESS: Move sound queue related functions to a separate class
- Implement missing queue reset function
 - Cleanup SoundManager::playLoopingSound()
2011-06-28 22:13:40 -04:00
Littleboy 5d020fffad LASTEXPRESS: Refactor Sound class
- Move entry-related functions to separate class
 - Move enumeration to shared header and rename FlagType to SoundFlag
2011-06-24 10:56:49 -04:00
Littleboy 7a96e0bfb6 LASTEXPRESS: Extract Clock and TrainLine classes to separate files 2011-06-23 08:52:45 -04:00
Littleboy f0cf72f431 LASTEXPRESS: Move Menu class to a separate folder 2011-06-23 06:58:21 -04:00