36038 Commits

Author SHA1 Message Date
Filippos Karapetis
94fb4762e2 Changed wording from "handle" to "sound", as we're dealing with sound objects, not handles. Also, made the warnings thrown when a slot couldn't be found more verbose. Finally, changed the logic of when warnings should be thrown in cmdSetSoundLoop
svn-id: r46871
2010-01-02 01:09:49 +00:00
Johannes Schickel
c671c17258 Use Common::StackLock.
svn-id: r46870
2010-01-02 00:54:11 +00:00
Filippos Karapetis
032b23e8d8 SCI/new music code: Fixed some mutex-related issues
svn-id: r46869
2010-01-02 00:45:55 +00:00
Eugene Sandulenko
be1d586cd5 Removing now redundant comment. The fix was correct.
svn-id: r46868
2010-01-02 00:22:46 +00:00
Jordi Vilalta Prat
a22fd021e9 Move the LZSS code to the Groovie namespace.
svn-id: r46867
2010-01-02 00:07:20 +00:00
Florian Kagerer
998d511eeb LOL: cleanup
svn-id: r46866
2010-01-01 23:57:16 +00:00
Walter van Niftrik
8407b4d723 SCI: Adlib: Fix bug in master volume handling.
svn-id: r46865
2010-01-01 23:48:55 +00:00
Walter van Niftrik
205f7437ea SCI: Fix segfault in dual-language KQ5.
svn-id: r46864
2010-01-01 23:48:22 +00:00
Johannes Schickel
137744c40c This time properly fix getTotalPlayTime for looped FLAC, MP3 and VORBIS audio streams.
svn-id: r46863
2010-01-01 22:57:08 +00:00
Johannes Schickel
2e9d5a5f41 Mention in documentation of AudioStream::setNumLoops, that this function also resets the number of loops played counter.
svn-id: r46862
2010-01-01 22:56:18 +00:00
Johannes Schickel
6109275750 Properly reset _numPlayedLoops in setNumLoops in all AudioStream implementations implementing setNumLoops.
svn-id: r46861
2010-01-01 22:55:38 +00:00
Johannes Schickel
8817d6eeb5 Merge update_nop1 and update_nop2.
svn-id: r46860
2010-01-01 22:33:45 +00:00
Johannes Schickel
82b4b65bdc - Fix out of bounds array access.
- Add some asserts in output related functions

svn-id: r46859
2010-01-01 22:26:26 +00:00
Martin Kiewitz
03376d06f1 SCI/newmusic: removed TODO
svn-id: r46858
2010-01-01 22:17:59 +00:00
Martin Kiewitz
f3cd114c5c init _numPlayedLoops inside LinearMemoryStream
svn-id: r46857
2010-01-01 22:16:53 +00:00
Martin Kiewitz
0a965ced69 SCI/newmusic: changed setting volume from fade logic, implemented updating loop selector for sound fx
svn-id: r46856
2010-01-01 22:15:52 +00:00
Johannes Schickel
671cc15bd1 - Add some asserts
- Renamed snd_unkOpcode3 to snd_stopChannel
- Cleanup

svn-id: r46855
2010-01-01 21:59:11 +00:00
Martin Kiewitz
d6d4a4f6e0 SCI: fix build
svn-id: r46854
2010-01-01 21:55:51 +00:00
Martin Kiewitz
37d56920ef SCI/newmusic: changed fade volume setting for digital fx to onTimer() again, because setting it in updateCues() wont work right. We are processing fading effectively in there any way, added TODO for working approach
svn-id: r46853
2010-01-01 21:44:50 +00:00
Martin Kiewitz
44dc3f9bfb SCI: kDoAudio now also clips volume and adjusts to mixer volume
svn-id: r46852
2010-01-01 21:26:46 +00:00
Arnaud Boutonné
f3ca535038 Fix a buffer overflow, thanks to syke
svn-id: r46851
2010-01-01 21:18:19 +00:00
Martin Kiewitz
379ae6df30 SCI/newmusic: now clips volume against MUSIC_VOLUME_MAX (127) instead of the mixer max volume (which would be wrong of course), adjusts volume when setting sample channel volume
svn-id: r46850
2010-01-01 21:04:20 +00:00
Martin Kiewitz
967853c03f SCI: volume for sci0 now set to 127, now using constant instead of value
svn-id: r46849
2010-01-01 20:49:56 +00:00
Johannes Schickel
6385e77d85 Fix undefined operation in setNoPendingVerb (someone with knowledge of SAGA should review this, see the TODO comment). (Thanks to syke for reporting this)
svn-id: r46848
2010-01-01 20:37:02 +00:00
Martin Kiewitz
2a9e835695 SCI: Added TODO within kDoAudio
svn-id: r46847
2010-01-01 20:26:18 +00:00
Martin Kiewitz
7b0c1f262f SCI: fixing bad sorting of saved games due MMDDYYYY date saving
svn-id: r46846
2010-01-01 19:52:50 +00:00
Johannes Schickel
e757e7a60a Fix out of bounds access reported by syke.
svn-id: r46844
2010-01-01 19:45:49 +00:00
Filippos Karapetis
98194bfe13 SCI/new music code: The MIDI driver is now reset whenever the game's VM respawns, like what the old music code does. Fixes the MIDI music in KQ5CD, Lonbgow and perhaps others
svn-id: r46843
2010-01-01 19:23:23 +00:00
Martin Kiewitz
74159e12eb SCI/newmusic: set speech soundtype for audio resources played by kDoSound, cmdVolume is supposed to set music and sfx volume only - this whole fixes volume issues in lb2cd and others
svn-id: r46842
2010-01-01 18:57:14 +00:00
Martin Kiewitz
64d484bd99 SCI/newmusic: adding debug output to setVolume
svn-id: r46841
2010-01-01 17:53:37 +00:00
Filippos Karapetis
78b2692193 SCI/new music code: Center pitch wheel when unloading music tracks
svn-id: r46840
2010-01-01 17:25:44 +00:00
Filippos Karapetis
763c59bd46 Fixed KQ5CD (regression from rev. 46656)
svn-id: r46839
2010-01-01 17:16:12 +00:00
Johannes Schickel
bba2c8ce95 Fix getTotalPlayTime for MP3, FLAC, Vorbis and LinearMemoryStream after the latest loop related changes.
svn-id: r46838
2010-01-01 16:57:23 +00:00
Filippos Karapetis
54d9bf4c57 Fixed broken savegames when saving with the new music code
svn-id: r46837
2010-01-01 16:42:35 +00:00
Eugene Sandulenko
622dd0d16d Implemented setNumLoops() for common audio streams.
Implemented getNumPlayedLoops() for common audio streams.

Requested by m_kriewitz.

svn-id: r46836
2010-01-01 16:28:22 +00:00
Martin Kiewitz
d1b844d3c3 SCI: syncing loop selector... again... fixes qfg1 ending... again... now sci0 only
svn-id: r46835
2010-01-01 16:15:20 +00:00
Filippos Karapetis
153cf54850 SCI/new music code: Moved processing of digital sound effects outside the MIDI worker thread. Some cleanup
svn-id: r46834
2010-01-01 16:05:26 +00:00
Filippos Karapetis
74ae4ecc48 Added a comment for the reason updateSci0Cues() is called within kAnimate()
svn-id: r46833
2010-01-01 15:35:27 +00:00
Eugene Sandulenko
5ebadb10d4 Extend doxygen comment for setNumLoops()
svn-id: r46832
2010-01-01 15:35:12 +00:00
Martin Kiewitz
7bb18a018a SCI/newmusic: doing version check before looking for audio resource
svn-id: r46831
2010-01-01 14:41:11 +00:00
Vladimir Menshakov
199765b415 aligned zoomed picture to the top and fixed actor head animation in zoomed state
svn-id: r46830
2010-01-01 14:38:46 +00:00
Martin Kiewitz
810478e07f SCI/newmusic: better solution for volume - using int16 during fade, volume is now byte again
svn-id: r46829
2010-01-01 14:33:20 +00:00
Martin Kiewitz
25e111bcac SCI: changing volume to int16 again, fixes fadeOut of music and samples
svn-id: r46828
2010-01-01 14:23:16 +00:00
Martin Kiewitz
385c462352 SCI: fixing saved game compatibility
svn-id: r46827
2010-01-01 14:22:07 +00:00
Vladimir Menshakov
5b9409859b removed debug output
svn-id: r46826
2010-01-01 14:15:07 +00:00
Torbjörn Andersson
eec2109fd7 Updated the notes about Broken Sword cutscenes to that which I posted to
scummvm-devel last year. (Or yesterday, if you want to be precise.)

svn-id: r46824
2010-01-01 13:57:15 +00:00
Vladimir Menshakov
0cdcd59322 found zoom tables, added original zoom support.
svn-id: r46823
2010-01-01 13:54:05 +00:00
Vladimir Menshakov
a8f7d7e61e removed commented out debug
svn-id: r46822
2010-01-01 13:53:40 +00:00
Martin Kiewitz
8ee5033bab Added setNumLoops() for linear memory streams, enables looping of samples in sci
svn-id: r46821
2010-01-01 13:31:02 +00:00
Martin Kiewitz
7cf1d5bd5d SCI/newmusic: added fade and loop capability to samples (looping doesnt work yet), fixes lsl1 doll inflation endless loop
svn-id: r46820
2010-01-01 13:21:30 +00:00