28 Commits

Author SHA1 Message Date
D G Turner
7d29e4017d DREAMWEB: Modify Sound code to better match original behaviour.
This fixes bug #3531635 - "DREAMWEB: doors don't play "open" sound when
opening".
In addition, the resultant code is simpler and should better match the
original behaviour and a basic playtest has not shown any regressions.
2012-06-05 01:00:01 +01:00
D G Turner
db77b9e4a7 DREAMWEB: Modify sound code to prevent missing sound effects.
This should fix bug #3528164 "DREAMWEB: missing sound
effects/music cues during main title" by preventing repeated calls
of SFX id 12 being lost if the next call is made before the sound
handler has cleared the previous one.
2012-06-02 22:28:34 +01:00
D G Turner
d9983a6224 DREAMWEB: Cleanup of debugging code and formatting in sound code.
This commit removes various temporary debugging output, cleans up
some points of formatting and replaces some hexadecimal sizes and
offsets with decimal for readability.
2012-06-02 07:03:40 +01:00
D G Turner
628cfa3d47 DREAMWEB: Objectify Sound functions & data into DreamWebSound class.
This change should have no functional change, but makes the sound code
more decoupled, modular and readable, prior to attempting a fix for
bug #3528164 - "DREAMWEB: missing sound effects/music cues during main
title".
2012-05-31 05:16:10 +01:00
D G Turner
96ae10c749 DREAMWEB: Removal of dead code and cleanup in sound code.
The removed blocks in the playChannel<n> functions referencing index are
non-functional leftovers from more complex logic in the original code
structure, and thus can be safely removed.
2012-05-30 03:53:52 +01:00
D G Turner
45974a1bf0 DREAMWEB: Increased debugging output from sound related code.
This code is intended as temporary debugging code to aid investigation
of bug #3528164 - "DREAMWEB: missing sound effects/music cues during
main title" and can be removed once this bug is fixed.
2012-05-22 16:31:23 +01:00
D G Turner
0cff5c547c DREAMWEB: Add _speechDirName to remove duplication of Directory name. 2012-05-08 16:48:01 +01:00
D G Turner
e3c5f9180c DREAMWEB: Migrate loadSounds() to using datafile prefix variable. 2012-02-24 15:04:12 +00:00
Filippos Karapetis
6a5c75a439 DREAMWEB: Changed hasSpeech() to also take account of the audio settings
This fixes an assert in the madman sequence
2011-12-28 20:26:15 +02:00
Filippos Karapetis
279746fcf0 DREAMWEB: Completely remove all of the runtime, and move everything into DreamWebEngine
Also, remove dead code (allocateMem/deallocateMem)
2011-12-28 15:07:17 +02:00
D G Turner
a09fdaa0b1 DREAMWEB: Move 4 volume related variables out of data blob. 2011-12-28 01:31:24 +00:00
D G Turner
5492307982 DREAMWEB: Move 'speechloaded' flag out of data blob. 2011-12-28 00:40:00 +00:00
D G Turner
56191e3928 DREAMWEB: Move 3 sound related variables out of data blob. 2011-12-27 23:49:35 +00:00
Filippos Karapetis
4c9a600618 DREAMWEB: Remove dead code 2011-12-27 10:43:44 +02:00
Filippos Karapetis
bda312b61b DREAMWEB: Remove more unused/unnecessary variables 2011-12-27 10:16:06 +02:00
D G Turner
ead3089fa2 DREAMWEB: Move kCurrentsample out of data blob. 2011-12-27 04:59:56 +00:00
D G Turner
0155e88d10 DREAMWEB: Move kRoomssample out of data blob.
N.B. Last commit was kForeignRelease, not kSubtitles.
2011-12-27 04:39:50 +00:00
D G Turner
7db571812a DREAMWEB: Move kSubtitles out of data blob. 2011-12-27 03:34:54 +00:00
Filippos Karapetis
047a9dc19d DREAMWEB: Fix regression in loadRoomsSample() 2011-12-26 15:04:06 +02:00
Max Horn
d015f5d446 DREAMWEB: Remove some dead code 2011-12-26 01:41:55 +01:00
Filippos Karapetis
71362cc35d DREAMWEB: Remove a lot of unused variables 2011-12-12 17:23:32 +02:00
Max Horn
b699d5e81e DREAMWEB: Remove now unused DreamGenContext::playChannel0() wrapper 2011-12-12 13:26:22 +01:00
Max Horn
5d80fda3a4 DREAMWEB: Add Dreambase::loadSpeech method 2011-12-12 12:40:28 +01:00
Filippos Karapetis
9a420d232f DREAMWEB: Remove a lot of unused/unneeded variables 2011-12-12 12:07:09 +02:00
Willem Jan Palenstijn
fb7246f3de DREAMWEB: Convert 'createName' 2011-12-12 10:47:24 +01:00
Max Horn
5b43fb6be7 DREAMWEB: Code formatting 2011-12-08 19:52:10 +01:00
Willem Jan Palenstijn
e8ccbe3558 DREAMWEB: Convert watchreel and remove global kReelpointer 2011-12-08 19:18:27 +01:00
Max Horn
45a99e7276 DREAMWEB: Move sound related code to a new source file 2011-12-07 21:58:31 +01:00