75 Commits

Author SHA1 Message Date
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Cameron Cawley
8f1d1836f3 MOHAWK: Fix decoding sounds with 16 bit samples 2018-05-24 17:22:15 +01:00
Bastien Bouclet
44fd44ccc9 MOHAWK: Remove detection entries for games not supported by the engines 2018-05-17 20:49:28 +02:00
Bastien Bouclet
2a02e0311d MOHAWK: Remove midi playback
This was unused and not touched for many years
2018-05-17 20:49:28 +02:00
Bastien Bouclet
84b2dc5cc8 MOHAWK: Fix some clang-tidy warnings 2018-03-31 13:36:09 +02:00
Bastien Bouclet
a2fc282e1c MOHAWK: Myst: Move the sound code to its own class 2017-07-22 20:38:56 +02:00
Bastien Bouclet
8f0fa86fbc MOHAWK: Myst: Change blocking sounds to use the main loop 2017-07-22 20:38:56 +02:00
Bastien Bouclet
97f5b33fd7 MOHAWK: Always restart a sound when replacing it with the same one
Fixes 
2016-09-25 10:02:00 +02:00
Bastien Bouclet
2756d6226b MOHAWK: Add a Riven specific sound manager
- Add ambient sound fading
- Fix ambient sound volume to use the list-level volume
2016-08-11 19:53:20 +02:00
Bastien Bouclet
aeee4888be MOHAWK: Allow the games to have a different sound manager 2016-08-11 19:53:20 +02:00
Bastien Bouclet
e55758f444 MOHAWK: Move makeMohawkWaveStream out of the Sound class 2016-08-11 19:53:20 +02:00
Ori Avtalion
3564032330 JANITORIAL: Reduce audio header dependencies 2016-04-14 16:10:21 +03:00
Bastien Bouclet
becbe41527 MOHAWK: Continue to poll the events when playing blocking sounds 2016-02-22 09:57:24 +01:00
Bastien Bouclet
3a4a94bbd2 MOHAWK: Always apply the volume when changing the background sound 2016-02-11 08:30:26 +01:00
Matthew Hoops
030e4d0608 AUDIO: Make Rewindable- and SeekableAudioStream inherit virtually 2015-08-30 19:53:53 -04:00
Johannes Schickel
abd9e92086 MOHAWK: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Bastien Bouclet
0bbd43eb32 MOHAWK: Implement Myst demo opcodes 298 and 299, sneak preview speech. 2011-08-13 20:22:27 +02:00
Eugene Sandulenko
0dafa7f80f ALL: Reduce audio/ header dependency 2011-08-06 11:30:42 +01:00
Bastien Bouclet
8e80f5690d MOHAWK: Misc Mechanical fixes. Many thanks to Patrick Monnerat for the patch.
- Adds break statements where missing in Mechanical::toggleVar() and Mechanical::setVarValue()
- Restore proper numbering of Achenar and Sirrus panel state variables, which were wrongly swapped.
- When bird is singing, play sound continuously.
- When operating the fortress elevator, keep the engine sound active while the elevator is moving.
2011-07-02 22:01:46 +02:00
Bastien Bouclet
efac5c42d7 MOHAWK: Fix background music restarting when changing cards in original Myst 2011-05-14 19:54:34 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2 JANITORIAL: Reduce header dependencies in shared code
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Matthew Hoops
deb46ab38b AUDIO: Split the Intel DVI ADPCM into its own class
IMA is really just the definition on how to decode a sample from a nibble, DVI is just a way for those nibbles to be stored in the stream.
2011-04-13 09:45:13 -04:00
Alyssa Milburn
feefced3ce MOHAWK: Add Sound::isPlaying() function. 2011-03-29 21:18:55 +02:00
Matthew Hoops
50a35193c9 MOHAWK: Remove 'old' from the LB v1 sound function too 2011-03-22 21:16:27 -04:00
Matthew Hoops
d096b78aca MOHAWK: Add support for Mac LB v2 games 2011-02-13 16:14:07 -05:00
Max Horn
42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Matthew Hoops
191d85f174 MOHAWK: Implement Riven's stopSound() and fadeAmbientSounds() opcodes
svn-id: r55460
2011-01-23 07:02:49 +00:00
Matthew Hoops
27d9ee3de1 MOHAWK: Do not stop ambient sounds when finding no matching Riven SLST index
This fixes the ambient sounds in the Rebel Tunnel puzzle and Temple Island maglev among other places.

svn-id: r55459
2011-01-23 06:54:35 +00:00
Matthew Hoops
c1e68ac94d MOHAWK: Fix meaning of the sound loop variable
svn-id: r55433
2011-01-22 16:35:25 +00:00
Matthew Hoops
755558de04 MOHAWK: Update the ADPC chunk code
svn-id: r55431
2011-01-22 16:16:30 +00:00
Alyssa Milburn
d68c8547c5 MOHAWK: Don't use a fixed-size array for cue lists.
svn-id: r55335
2011-01-19 22:41:12 +00:00
Matthew Hoops
16ba5717f4 MOHAWK: Properly initialize Myst's background SndHandle
svn-id: r55331
2011-01-19 16:55:47 +00:00
Matthew Hoops
918a21cd7b MOHAWK: Use a separate SndHandle for Myst's background sound
svn-id: r55330
2011-01-19 16:52:47 +00:00
Alyssa Milburn
017ab4c503 MOHAWK: Add some supporting code for cue lists.
svn-id: r55328
2011-01-19 16:36:34 +00:00
Matthew Hoops
2aca6d3838 MOHAWK: Rename some Myst-specific sound functions; cleanup
svn-id: r55314
2011-01-18 21:10:58 +00:00
Matthew Hoops
72b3d1f546 MOHAWK: Cleanup Mohawk wave parsing
svn-id: r55212
2011-01-11 21:48:49 +00:00
Alyssa Milburn
e59eb31ba9 MOHAWK: Add stopMidi() function.
svn-id: r55113
2011-01-03 22:53:34 +00:00
Alyssa Milburn
940e4f936e MOHAWK: Don't leak the MIDI data.
svn-id: r55094
2011-01-02 14:57:20 +00:00
Alyssa Milburn
1f579add9f MOHAWK: Don't delete the MIDI driver before the parser.
The parser was trying to call into the deleted driver.

svn-id: r55093
2011-01-02 14:23:18 +00:00
Bastien Bouclet
938b633238 MOHAWK: Fix playing sound from aliases in Myst ME.
svn-id: r55031
2010-12-24 11:04:25 +00:00
Bastien Bouclet
c870bf22d1 MOHAWK: Separate background sound handling from other sounds for Myst. Allow the scripts to change the background sound volume.
svn-id: r54953
2010-12-18 13:12:56 +00:00
Matthew Hoops
d3c78b8a3d MOHAWK: Don't store the sound name in SndHandle
svn-id: r54647
2010-11-29 21:18:20 +00:00
Bastien Bouclet
6a4ff1a9b5 MOHAWK : Finished implementing Selenitic sound receiver
svn-id: r54593
2010-11-29 20:49:42 +00:00
Matthew Hoops
3d4ca8e405 MOHAWK: Add an isPlaying() and stopSound(id) function to Sound (for LB and others)
svn-id: r54514
2010-11-27 21:36:04 +00:00
Matthew Hoops
5616bde4e7 MOHAWK: Fix Living Books v1 sound (courtesy of fuzzie)
svn-id: r54397
2010-11-21 00:02:25 +00:00
Matthew Hoops
0f2bcd2f9f MOHAWK: Cleanup resource handling
- Renamed getRawData() to getResource()
- Add a getResource() and hasResource() function for named resources
- Other minor formatting changes

svn-id: r54396
2010-11-20 23:53:14 +00:00
Matthew Hoops
0cba4f0306 MOHAWK: Implement blocking sound in Riven
Sounds that set the third argument of the playSound opcode to 1 (wherever they may be) will now block. The volume parameter of playSound is also now honored. Merge the Myst sound blocking code with this too.

svn-id: r52643
2010-09-08 20:50:56 +00:00
Matthew Hoops
58139baf37 MOHAWK: Sound cleanup
Merge the Riven sound file code with the main Riven resource code and remove the mainSoundFile parameter from Sound::playSound(). Reasoning: The sound id's do not collide with the sound id's in the main data files. The sound archives only exist because the original CD version had the ability to choose between low and high quality audio.

svn-id: r52631
2010-09-07 20:18:30 +00:00
Matthew Hoops
0e4bf4aff7 Fix some other valgrind warnings.
svn-id: r50762
2010-07-09 16:53:50 +00:00