aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/sndres.cpp
AgeCommit message (Collapse)Author
2014-02-18SAGA: Make GPL headers consistent in themselves.Johannes Schickel
2013-07-02SAGA: Fix odd memcmp() conditions, as reported by clangFilippos Karapetis
Thanks to LordHoto for pointing those out - they followed the incorrect paradigm of previous code
2013-04-27SAGA: Fix memory leak in Mac version of IHNMTorbjörn Andersson
CID 1004123. Unfortunately, I do not have this version of the game so I cannot verify that this fix is correct, but it should be.
2012-03-13JANITORIAL: Remove unnecessary empty default constructors/destructors.Christoph Mallon
2011-12-24SAGA: Rework the way audio is bufferedMatthew Hoops
The streams that are created are now used directly instead of SAGA creating its own RawStream after decoding it. In addition, this should fix ADPCM-compressed sounds on big endian systems (as the code was treating the result of readBuffer() to always be LE, whereas it's actual native endian). I've also clarified the bugfix to bug #1256701. It only applies to 16-bit PCM data and the size for other data is no longer truncated too ;)
2011-12-24SAGA: Properly handle ITE Mac sound resourcesMatthew Hoops
2011-07-09SAGA: Removed several game flags, which are now found more reliably on the flyFilippos Karapetis
- The logo screens of all ITE versions are shown correctly now - Wyrmkeep versions, demo versions with scene substitutes, demos with mono music and demo versions with LE VOX encoded voices are all found automatically now
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-02-09AUDIO: Rename sound/ dir to audio/Max Horn
svn-id: r55850
2010-10-24SAGA: replace Resource:loadResource malloc with ByteArray classAndrew Kurushin
svn-id: r53779
2010-10-24SAGA: replace Scene::_resourceList, Interface::_inventory malloc arrays with ↵Andrew Kurushin
Common::Array svn-id: r53773
2010-10-22SAGA: replace Actor::_pathCell, Anim::*, Converse::text, IsoMap::*, ↵Andrew Kurushin
Music::_songTable, ObjectMap::*, PalAnim::*, Scene::sceneLut, SndRes::_fxTable* malloc based arrays with Common::Array implementation add ByteArray type fix debug Tile Hittest frame drawing debug 0x%x => 0x%X svn-id: r53719
2010-10-02SAGA: Fix bug #3065113 with patched sound glitchEugene Sandulenko
Bug #3065113: "ITE demo: patched sound at intro is not played correctly" svn-id: r52975
2010-09-14SAGA: Fix audio flags for VOC soundsWillem Jan Palenstijn
This is a regression from r43470 and fixes the speech in the intro. Bug #3065113. svn-id: r52727
2010-06-15SAGA: Fix bug #2886141.Eugene Sandulenko
Bug #2886141: "ITE: Cumulative Snoring sounds in Prince's Bedroom". Implemented safeguard against running same looped sound more than once. svn-id: r49725
2010-05-16Added automatic detection of the IHNM demoFilippos Karapetis
svn-id: r49047
2010-01-31Switch makeADPCMStream to DisposeAfterUse::FlagMax Horn
svn-id: r47736
2010-01-27Moved the Shorten decoder inside the SAGA engine, as it's the only one using ↵Filippos Karapetis
it (and it's still unfinished, too) svn-id: r47592
2010-01-26Moved audio stream implementations (for MP3, FLAC, etc.) to new dir ↵Max Horn
sound/decoders/ svn-id: r47579
2010-01-19Move raw audio flags from sound/mixer.h to sound/raw.hMax Horn
svn-id: r47395
2009-12-04refactor resource module:Andrew Kurushin
- struct ResourceContext => class ResourceContext - replace "*alloc","free" with array templates - simplify createContexts routines svn-id: r46254
2009-08-17Simplified the sound playing code by removing the boolean variables for ↵Filippos Karapetis
signed, stereo, endian and sample bit information - now sound flags are used instead. Some cleanup. svn-id: r43470
2009-08-17Made sound effect playing code consistent for compressed and uncompressed ↵Filippos Karapetis
sounds. MemoryReadStream is used again instead of SeekableSubReadStream, as there will be issues when multiple sound effects or voices are played simultaneously svn-id: r43466
2009-05-24Strip trailing whitespaces in the whole code base.Johannes Schickel
svn-id: r40867
2009-01-17Silenced MSVC warningFilippos Karapetis
svn-id: r35883
2009-01-06Use skip instead of seekFilippos Karapetis
svn-id: r35763
2009-01-04Got rid of explicit game sound infoFilippos Karapetis
svn-id: r35727
2009-01-04Improved handling of sound resourcesFilippos Karapetis
svn-id: r35724
2009-01-02Wrapped more engine-specific code around appropriate ifdefsFilippos Karapetis
svn-id: r35679
2009-01-02- Split the IHNM script functions into a different fileFilippos Karapetis
- Added two new defines, ENABLE_IHNM and ENABLE_SAGA2 (enabled by default), which can be used to remove the parts of the SAGA engine which are specific to IHNM and SAGA 2 games. Hopefully, this will reduce the size of the engine even more for platforms with little memory (e.g. the Nintendo DS) svn-id: r35672
2009-01-01Simplified sound resource loadingFilippos Karapetis
svn-id: r35649
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-12-31Several fixes and cleanup for sound resource loading. Sound information for ↵Filippos Karapetis
sound types that are detected automatically is read from the files themselves svn-id: r35644
2008-12-31Preliminary Shorten audio support for SAGA 2 games. It's still very wrong ↵Filippos Karapetis
and needs further work, but it's a start svn-id: r35626
2008-12-29- Removed game sound information for sound types that it can be determined ↵Filippos Karapetis
automatically. The game sound information left is now used as override info for certain sound types (e.g. PCM) - Added stubs for Shorten audio type, used in SAGA2 games svn-id: r35616
2008-12-29- IHNM Mac loads correctly againFilippos Karapetis
- Removed isBigEndian from GameSoundInfo - Removed GF_BIG_ENDIAN_DATA - Stopped loading the options panel for non-interactive ITE demos (it doesn't exist) - Fixed crash when exiting from non-interactive ITE demos svn-id: r35615
2008-12-22- Split the SAGA resource manager in 3 different ones, depending on the ↵Filippos Karapetis
resource type (RSC for ITE, RES for IHNM and HRS for DINO/FTA2). The SAGA 2 HRS resource manager is still a stub - Added detection for the voice file of FTA2 svn-id: r35484
2008-12-21- Added some stubs for the SAGA2 games dino and fta2Filippos Karapetis
- Stopped loading the isomap and puzzle game modules for IHNM, as they are not used for that game (this saves some memory for IHNM) - Removed getDisplayWidth() and getDisplayHeight() svn-id: r35473
2008-12-21Cleaned up the mess with game IDs and game types: removed game types, ↵Filippos Karapetis
reduced the game IDs and added game features where necessary svn-id: r35467
2008-12-12Fixed a regression of commit #34458. Sound data for compressed sounds was ↵Filippos Karapetis
read incorrectly. Fixes bugs #2422371 - "ITE: Talk animation takes longer than speaking" and #2111496 - "IHNM: Speech is garbled" svn-id: r35320
2008-09-30SAGA: Some code cleanupMax Horn
svn-id: r34703
2008-09-09Committed patch #2100962 - "Saga engine reduced memory usage"Filippos Karapetis
svn-id: r34458
2008-05-26Code cleanup:Filippos Karapetis
- Removed sagaresnames.h - Moved all special scenes to scene.h, and named them consistently (e.g. RID_ITE_OVERMAP_SCENE -> ITE_SCENE_OVERMAP) - Moved all resources which were used by the ITE intro into ite_introproc.cpp - Removed several defines which were only used once (e.g. the SFX names) - Reordered the GameResourceDescription resources so that ITE and IHNM specific resources are placed in the end - Updated the comment about the IHNM Mac music - Changed the callocs in loadPalAnim to mallocs, like in the rest of the code - Removed the MEM error svn-id: r32282
2008-04-05Fixed warning. (You shouldn't have to use floor() to simulate integer mathTorbjörn Andersson
anyway.) svn-id: r31411
2008-04-05Fixed regression from previous commitFilippos Karapetis
svn-id: r31410
2008-04-05Simplify codeEugene Sandulenko
svn-id: r31409
2008-04-05Speech is now played correctly in the Macintosh version of IHNMFilippos Karapetis
svn-id: r31405
2008-04-05Sound effects in the Macintosh version of IHNM are now workingFilippos Karapetis
svn-id: r31404
2008-02-27Don't change the voice bank when no voice files are present. This will stop ↵Filippos Karapetis
SAGA games from crashing when no voice files are present in talkie versions of ITE and IHNM (regression from commit #30648) svn-id: r30989
2008-01-27Removed trailing spaces.Jordi Vilalta Prat
svn-id: r30664