Commit Graph
78 Commits
Author SHA1 Message Date
Thierry Crozat 503188593a SWORD1: Improve detection of speech data endianness for mac version
Before trying an heuristic on the decoded data it simply checks if
we get the expected resource size after decompression. When
using the wrong endianness this is unlikely to be the case.
2016-06-06 01:48:41 +01:00
Ori Avtalion 3564032330 JANITORIAL: Reduce audio header dependencies 2016-04-14 16:10:21 +03:00
Filippos Karapetis eed9da3ea2 SWORD1: Remove trailing whitespace 2014-10-28 16:12:25 +02:00
Thierry Crozat 4aaa74aea7 SWORD1: Avoid possible division by zero in speech endianness heuristic 2014-09-10 20:25:51 +01:00
Thierry Crozat 83bb4fdb38 I18N: Really fix speech endianness heuristic on big endian system
The previous commit was wrong because the endianness does not only
impact the data sample values but also the way the speech is uncompressed.
2014-09-08 21:42:29 +01:00
Thierry Crozat 4afb40e16f SWORD1: Fix speech endianness heuristic on big endian systems
This should fix bug #6720.
2014-09-08 09:13:52 +01:00
Thierry Crozat 72d37eeb82 SWORD1: Fix typo in comment 2014-09-07 14:59:56 +01:00
unknown ab742d7308 SWORD1: Silence some GCC warnings.
Signed/unsigned comparison.
2014-09-07 11:06:20 +02:00
Thierry Crozat 5450870326 SWORD1: Improve speech endianess detection in mac version
Because of the way the speech is compressed with duplicate samples
being stored with a negative size and a single value, when reading the
data with the wrong endianess we can end up with a lot of duplicate
samples which biased the result with the way the old heuristic was
coded. Hopefully this change to skip duplicate samples will make it
more robust.
2014-09-05 22:57:36 +01:00
Thierry Crozat 8eb82fd6c1 SWORD1: Fix heuristic to determine the endianess of the speech in mac version
Because the data is compressed (a repeated sample is coded as a
negative length followed by the value), when the length is read with
the wrong endianess we get completely wrong data. So to get the BE
data we cannot just read them assuming LE and byteswap afterward.
2014-09-05 07:46:42 +01:00
Johannes Schickel f4724e7a46 SWORD1: Make GPL headers consistent in themselves. 2014-02-18 02:39:38 +01:00
Matthew Hoops 55583214ad Revert "SWORD1: Let the XA audio use its own looping"
This reverts commit 481a5e0e7c.

Turns out that not all the sounds have the built-in loop flag, such as the piano in the Hotel Ubu.
2013-11-20 21:36:16 -05:00
Thierry Crozat 32c3de61e1 SWORD1: Removed unused class variable 2013-05-14 21:51:25 +01:00
Johannes Schickel 155118dc1e SWORD1: Fix delete[] formatting. 2012-07-25 21:11:04 +02:00
Torbjörn Andersson 1ffb832666 SWORD1: Fix bug #3431552 ("Wrong background sound in Windows demo")
This is a slightly updated version of the patch I attached to the
bug report. Apparently, the DOS/Windows demo has a slightly different
set of sound resources than the full game. (There were also some
other minor differences in the sound effects list, but I didn't think
them worth the trouble to implement.) I've played through the demo,
and I didn't notice any problems.
2011-11-08 21:46:10 +01:00
Johannes Schickel 928cb5ab11 SWORD1: Made code conform a bit better to our formatting guidelines.
Most is automatically converted via astyle + some manual fixes, hopefully I
did not miss anything astyle messed up...
2011-09-07 23:54:34 +02:00
Matthew Hoops 481a5e0e7c SWORD1: Let the XA audio use its own looping 2011-08-25 10:14:17 -04:00
Matthew Hoops 40fd9ce27c AUDIO: Remove default rate parameter from xa 2011-08-24 09:54:19 -04:00
Matthew Hoops adb69a5a39 AUDIO: Rename Vag to XA
Vag is really an XA container, and one that we do not have a decoder for (nor need)
2011-08-24 09:54:19 -04:00
Max Horn 4cbe4ede66 COMMON: Registers RandomSources in constructor with the event recorder
This also removes the dependency of engines on the event recorder header
and API, and will make it easier to RandomSources that are not properly
registered.
2011-05-17 12:17:26 +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
Max Horn 42ab839dd6 AUDIO: Rename sound/ dir to audio/
svn-id: r55850
2011-02-09 01:09:01 +00:00
Max Horn 2d1c8a3533 ALL: Fix whitespaces / indention
svn-id: r55818
2011-02-07 23:01:06 +00:00
Max Horn 2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
Torbjörn Andersson c91a07229a JANITORIAL: Removed most punctuation at end of warning() and error()
Our warning() and error() functions always add an exclamation mark
to the end of the message anyway.

svn-id: r52791
2010-09-18 10:55:16 +00:00
Max Horn a1840bd573 AUDIO: Rename Mixer::playInputStream to playStream
svn-id: r48637
2010-04-12 09:14:17 +00:00
Johannes Schickel 8ae24a27b3 Yet more Flac -> FLAC changes for consistency.
svn-id: r47847
2010-02-03 09:42:40 +00:00
Johannes Schickel fe35d372da - Rename FlacStream to FLACStream.
- Rename makeFlacStream to makeFLACStream.

svn-id: r47846
2010-02-03 09:42:11 +00:00
Johannes Schickel a505d32eff Replace use of Audio::makeRawMemoryStream by Audio::makeRawStream.
svn-id: r47716
2010-01-30 15:26:54 +00:00
Max Horn 1c906a1f08 Hide VagStream implementation, only expose it via a factory method
svn-id: r47634
2010-01-28 09:38:21 +00:00
Max Horn 1565f14bc1 Moved audio stream implementations (for MP3, FLAC, etc.) to new dir sound/decoders/
svn-id: r47579
2010-01-26 22:48:45 +00:00
Johannes Schickel aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Max Horn 4b996e7de7 Reorder params to Audio::makeRawMemoryStream
svn-id: r47492
2010-01-23 23:55:35 +00:00
Max Horn cebaa0b0d3 Started to get rid of Audio::FLAG_LOOP
svn-id: r47397
2010-01-19 23:50:33 +00:00
Max Horn dc5e08e623 Move raw audio flags from sound/mixer.h to sound/raw.h
svn-id: r47395
2010-01-19 22:30:33 +00:00
Fabio Battaglia bd4e6283af sword1: removed a leftover semicolon
svn-id: r47379
2010-01-19 11:30:41 +00:00
Max Horn c01ef60cb9 SWORD1: Fix memory leak in PSX audio code (seems to have been there for quite some time?)
svn-id: r47378
2010-01-19 11:22:54 +00:00
Max Horn 5ee6c79b5d Convert more engines from Mixer::playRaw to Mixer::playInputStream
svn-id: r47377
2010-01-19 11:22:14 +00:00
Max Horn b227c660c6 Remove loop start/end params from Mixer::playRaw; convert some code from Mixer::playRaw to Mixer::playInputStream
svn-id: r47375
2010-01-19 11:20:58 +00:00
Max Horn 9baa2acdca SWORD1: Fix (?) sfx looping
svn-id: r47370
2010-01-19 00:56:52 +00:00
Max Horn 557bb394de Get rid of Mixer::FLAG_AUTOFREE.
Also fix several recently introduced new/delete vs. malloc/free mismatches.

svn-id: r47369
2010-01-19 00:56:29 +00:00
Max Horn 7ec2da968c Switch most AudioStream factories to use DisposeAfterUse::Flag
svn-id: r47334
2010-01-16 21:36:08 +00:00
Max Horn f720d99b0a Switch Mixer::playInputStream to use DisposeAfterUse::Flag
svn-id: r47182
2010-01-08 22:09:43 +00:00
Johannes Schickel f263393ef0 Fix sound effects in Sword1 PSX, regression from r47132.
svn-id: r47176
2010-01-08 21:47:28 +00:00
Torbjörn Andersson 3a163b960e This should fix bug #2928411, "SWORD1: Macintosh Demo crashes after Intro".
svn-id: r47171
2010-01-08 19:58:47 +00:00
Max Horn 51933629d1 Changed foo(void) to foo() in almost all non-backend source files
svn-id: r45616
2009-11-02 21:54:57 +00:00
Max Horn edf6827913 SWORD1: Remove obsolete TODO
svn-id: r45100
2009-10-14 23:29:14 +00:00
Torbjörn Andersson 9cc0dc3d91 Fixed bug #2847910, "Loss of background audio loop". It would probably be safe
to backport this to the 1.0 branch, but I'm not 100% sure, and it's getting
pretty late here. (On the other hand, the missing sound effects are pretty
faint, at least in the cases I've seen, so we haven't been missing much. That's
probably why it's gone unnoticed until now.)

svn-id: r44073
2009-09-13 21:38:47 +00:00
Johannes Schickel 7e71865e91 Move the event recorder to its own class (EventRecoder inside common/EventRecorder.[h/cpp]).
svn-id: r42751
2009-07-25 12:59:46 +00:00