aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/sound.cpp
AgeCommit message (Collapse)Author
2016-06-06SWORD1: Improve detection of speech data endianness for mac versionThierry Crozat
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-04-14JANITORIAL: Reduce audio header dependenciesOri Avtalion
2014-10-28SWORD1: Remove trailing whitespaceFilippos Karapetis
2014-09-10SWORD1: Avoid possible division by zero in speech endianness heuristicThierry Crozat
2014-09-08I18N: Really fix speech endianness heuristic on big endian systemThierry Crozat
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-08SWORD1: Fix speech endianness heuristic on big endian systemsThierry Crozat
This should fix bug #6720.
2014-09-07SWORD1: Fix typo in commentThierry Crozat
2014-09-07SWORD1: Silence some GCC warnings.unknown
Signed/unsigned comparison.
2014-09-05SWORD1: Improve speech endianess detection in mac versionThierry Crozat
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-05SWORD1: Fix heuristic to determine the endianess of the speech in mac versionThierry Crozat
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-02-18SWORD1: Make GPL headers consistent in themselves.Johannes Schickel
2013-11-20Revert "SWORD1: Let the XA audio use its own looping"Matthew Hoops
This reverts commit 481a5e0e7c65674728eb31694a787723166a72ae. Turns out that not all the sounds have the built-in loop flag, such as the piano in the Hotel Ubu.
2013-05-14SWORD1: Removed unused class variableThierry Crozat
2012-07-25SWORD1: Fix delete[] formatting.Johannes Schickel
2011-11-08SWORD1: Fix bug #3431552 ("Wrong background sound in Windows demo")Torbjörn Andersson
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-09-07SWORD1: Made code conform a bit better to our formatting guidelines.Johannes Schickel
Most is automatically converted via astyle + some manual fixes, hopefully I did not miss anything astyle messed up...
2011-08-25SWORD1: Let the XA audio use its own loopingMatthew Hoops
2011-08-24AUDIO: Remove default rate parameter from xaMatthew Hoops
2011-08-24AUDIO: Rename Vag to XAMatthew Hoops
Vag is really an XA container, and one that we do not have a decoder for (nor need)
2011-05-17COMMON: Registers RandomSources in constructor with the event recorderMax Horn
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-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-02-09AUDIO: Rename sound/ dir to audio/Max Horn
svn-id: r55850
2011-02-07ALL: Fix whitespaces / indentionMax Horn
svn-id: r55818
2010-11-19COMMON: Split common/stream.h into several headersMax Horn
svn-id: r54385
2010-09-18JANITORIAL: Removed most punctuation at end of warning() and error()Torbjörn Andersson
Our warning() and error() functions always add an exclamation mark to the end of the message anyway. svn-id: r52791
2010-04-12AUDIO: Rename Mixer::playInputStream to playStreamMax Horn
svn-id: r48637
2010-02-03Yet more Flac -> FLAC changes for consistency.Johannes Schickel
svn-id: r47847
2010-02-03- Rename FlacStream to FLACStream.Johannes Schickel
- Rename makeFlacStream to makeFLACStream. svn-id: r47846
2010-01-30Replace use of Audio::makeRawMemoryStream by Audio::makeRawStream.Johannes Schickel
svn-id: r47716
2010-01-28Hide VagStream implementation, only expose it via a factory methodMax Horn
svn-id: r47634
2010-01-26Moved audio stream implementations (for MP3, FLAC, etc.) to new dir ↵Max Horn
sound/decoders/ svn-id: r47579
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2010-01-23Reorder params to Audio::makeRawMemoryStreamMax Horn
svn-id: r47492
2010-01-19Started to get rid of Audio::FLAG_LOOPMax Horn
svn-id: r47397
2010-01-19Move raw audio flags from sound/mixer.h to sound/raw.hMax Horn
svn-id: r47395
2010-01-19sword1: removed a leftover semicolonFabio Battaglia
svn-id: r47379
2010-01-19SWORD1: Fix memory leak in PSX audio code (seems to have been there for ↵Max Horn
quite some time?) svn-id: r47378
2010-01-19Convert more engines from Mixer::playRaw to Mixer::playInputStreamMax Horn
svn-id: r47377
2010-01-19Remove loop start/end params from Mixer::playRaw; convert some code from ↵Max Horn
Mixer::playRaw to Mixer::playInputStream svn-id: r47375
2010-01-19SWORD1: Fix (?) sfx loopingMax Horn
svn-id: r47370
2010-01-19Get rid of Mixer::FLAG_AUTOFREE.Max Horn
Also fix several recently introduced new/delete vs. malloc/free mismatches. svn-id: r47369
2010-01-16Switch most AudioStream factories to use DisposeAfterUse::FlagMax Horn
svn-id: r47334
2010-01-08Switch Mixer::playInputStream to use DisposeAfterUse::FlagMax Horn
svn-id: r47182
2010-01-08Fix sound effects in Sword1 PSX, regression from r47132.Johannes Schickel
svn-id: r47176
2010-01-08This should fix bug #2928411, "SWORD1: Macintosh Demo crashes after Intro".Torbjörn Andersson
svn-id: r47171
2009-11-02Changed foo(void) to foo() in almost all non-backend source filesMax Horn
svn-id: r45616
2009-10-14SWORD1: Remove obsolete TODOMax Horn
svn-id: r45100
2009-09-13Fixed bug #2847910, "Loss of background audio loop". It would probably be safeTorbjörn Andersson
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-07-25Move the event recorder to its own class (EventRecoder inside ↵Johannes Schickel
common/EventRecorder.[h/cpp]). svn-id: r42751