aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/sndres.cpp
AgeCommit message (Collapse)Author
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
2008-01-27Limit the number of simultaneous open files in IHNM to 7, down from 12. This ↵Filippos Karapetis
is necessary for devices that can keep a limited amount of files open simultaneously, like the PSP svn-id: r30648
2008-01-05Fix to remove a tab character from the GPL headerPaul Gilbert
svn-id: r30238
2007-12-23Disable voices when voice files do not exist (like the original interpreter ↵Filippos Karapetis
does), instead of exiting with an error. This is necessary for devices with little space svn-id: r29956
2007-11-16Changed Audio::makeADPCMStream so that the stream passed to it can ↵Max Horn
automatically be disposed svn-id: r29517
2007-09-23Moved MemoryStreamEndian from Saga to Common.Eugene Sandulenko
svn-id: r29038
2007-09-10Lots of source code formatting correctionsMax Horn
svn-id: r28887
2007-09-06Simplified the check for the uncompressed sound data in patch files ↵Filippos Karapetis
p2_a.iaf/p2_a.voc in ITE, when compressed sound files are used svn-id: r28864
2007-09-05If the p2_a.iaf/p2_a.voc patch files are located in ITE's root folder ↵Filippos Karapetis
instead of inside the sound subfolder, they're treated as uncompressed. Fixes bug #1751344 - "ITE: p2_a.iaf not played correctly" svn-id: r28854
2007-08-01Compressed sounds now work in IHNMFilippos Karapetis
svn-id: r28384
2007-07-31Cleanup: removed dead code, fixed some comments and did some layout changesFilippos Karapetis
svn-id: r28362
2007-07-18The SFX resource for the IHNM demo is differentFilippos Karapetis
svn-id: r28138
2007-07-14Improved check for the patched sound file used in ITE introFilippos Karapetis
svn-id: r28070
2007-07-10Fix for bug #1751344 - "ITE: p2_a.iaf not played correctly"Filippos Karapetis
svn-id: r28018
2007-06-26Move to the correct file offset when using compressed sounds in ITEFilippos Karapetis
svn-id: r27729