Filippos Karapetis
a9eb98c218
Simplified the sound playing code by removing the boolean variables for signed, stereo, endian and sample bit information - now sound flags are used instead. Some cleanup.
...
svn-id: r43470
2009-08-17 11:49:07 +00:00
Filippos Karapetis
3dfb1c3a96
Made sound effect playing code consistent for compressed and uncompressed 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-08-17 11:06:27 +00:00
Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Filippos Karapetis
ba4b872a20
Silenced MSVC warning
...
svn-id: r35883
2009-01-17 21:17:58 +00:00
Filippos Karapetis
cfec23cf0d
Use skip instead of seek
...
svn-id: r35763
2009-01-06 23:33:01 +00:00
Filippos Karapetis
80832ffb8f
Got rid of explicit game sound info
...
svn-id: r35727
2009-01-04 15:44:33 +00:00
Filippos Karapetis
203358bcb7
Improved handling of sound resources
...
svn-id: r35724
2009-01-04 14:38:03 +00:00
Filippos Karapetis
90d762c261
Wrapped more engine-specific code around appropriate ifdefs
...
svn-id: r35679
2009-01-02 19:10:51 +00:00
Filippos Karapetis
d5b6996c45
- Split the IHNM script functions into a different file
...
- 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-02 16:52:38 +00:00
Filippos Karapetis
41dce61a30
Simplified sound resource loading
...
svn-id: r35649
2009-01-01 16:02:43 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Filippos Karapetis
94548ed27c
Several fixes and cleanup for sound resource loading. Sound information for sound types that are detected automatically is read from the files themselves
...
svn-id: r35644
2008-12-31 22:10:09 +00:00
Filippos Karapetis
cae6bdac08
Preliminary Shorten audio support for SAGA 2 games. It's still very wrong and needs further work, but it's a start
...
svn-id: r35626
2008-12-31 11:46:21 +00:00
Filippos Karapetis
14434659bc
- Removed game sound information for sound types that it can be determined 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 18:35:18 +00:00
Filippos Karapetis
9a5f45a40c
- IHNM Mac loads correctly again
...
- 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-29 17:30:29 +00:00
Filippos Karapetis
437384a838
- Split the SAGA resource manager in 3 different ones, depending on the 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-22 14:13:15 +00:00
Filippos Karapetis
2257db88d3
- Added some stubs for the SAGA2 games dino and fta2
...
- 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-21 22:52:44 +00:00
Filippos Karapetis
d0f4f97ea9
Cleaned up the mess with game IDs and game types: removed game types, reduced the game IDs and added game features where necessary
...
svn-id: r35467
2008-12-21 15:59:05 +00:00
Filippos Karapetis
c6947285d2
Fixed a regression of commit #34458 . Sound data for compressed sounds was read incorrectly. Fixes bugs #2422371 - "ITE: Talk animation takes longer than speaking" and #2111496 - "IHNM: Speech is garbled"
...
svn-id: r35320
2008-12-12 22:56:56 +00:00
Max Horn
6aa12974bd
SAGA: Some code cleanup
...
svn-id: r34703
2008-09-30 12:58:27 +00:00
Filippos Karapetis
726e7e7ef9
Committed patch #2100962 - "Saga engine reduced memory usage"
...
svn-id: r34458
2008-09-09 07:05:47 +00:00
Filippos Karapetis
966239fc52
Code cleanup:
...
- 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-05-26 11:10:46 +00:00
Torbjörn Andersson
5a5d5c02e1
Fixed warning. (You shouldn't have to use floor() to simulate integer math
...
anyway.)
svn-id: r31411
2008-04-05 16:02:28 +00:00
Filippos Karapetis
44ba7f97a9
Fixed regression from previous commit
...
svn-id: r31410
2008-04-05 14:28:24 +00:00
Eugene Sandulenko
c8061850ed
Simplify code
...
svn-id: r31409
2008-04-05 14:18:32 +00:00
Filippos Karapetis
2da922081c
Speech is now played correctly in the Macintosh version of IHNM
...
svn-id: r31405
2008-04-05 13:19:12 +00:00
Filippos Karapetis
99283e9e54
Sound effects in the Macintosh version of IHNM are now working
...
svn-id: r31404
2008-04-05 12:36:52 +00:00
Filippos Karapetis
99a5d11544
Don't change the voice bank when no voice files are present. This will stop 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-02-27 18:17:50 +00:00
Jordi Vilalta Prat
66e9d4f5e8
Removed trailing spaces.
...
svn-id: r30664
2008-01-27 19:47:41 +00:00
Filippos Karapetis
5b6dbecb62
Limit the number of simultaneous open files in IHNM to 7, down from 12. This is necessary for devices that can keep a limited amount of files open simultaneously, like the PSP
...
svn-id: r30648
2008-01-27 14:32:08 +00:00
Paul Gilbert
6eb64102a4
Fix to remove a tab character from the GPL header
...
svn-id: r30238
2008-01-05 12:45:14 +00:00
Filippos Karapetis
5b74b676ce
Disable voices when voice files do not exist (like the original interpreter does), instead of exiting with an error. This is necessary for devices with little space
...
svn-id: r29956
2007-12-23 02:33:58 +00:00
Max Horn
c8ce5b1865
Changed Audio::makeADPCMStream so that the stream passed to it can automatically be disposed
...
svn-id: r29517
2007-11-16 10:05:18 +00:00
Eugene Sandulenko
9a9e9d21a8
Moved MemoryStreamEndian from Saga to Common.
...
svn-id: r29038
2007-09-23 09:59:10 +00:00
Max Horn
4a302b25ad
Lots of source code formatting corrections
...
svn-id: r28887
2007-09-10 13:17:20 +00:00
Filippos Karapetis
f8a9c41a8c
Simplified the check for the uncompressed sound data in patch files p2_a.iaf/p2_a.voc in ITE, when compressed sound files are used
...
svn-id: r28864
2007-09-06 08:35:08 +00:00
Filippos Karapetis
7b1d069ae4
If the p2_a.iaf/p2_a.voc patch files are located in ITE's root folder 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-09-05 18:08:20 +00:00
Filippos Karapetis
e5bd393a89
Compressed sounds now work in IHNM
...
svn-id: r28384
2007-08-01 14:19:55 +00:00
Filippos Karapetis
cd20f09a9d
Cleanup: removed dead code, fixed some comments and did some layout changes
...
svn-id: r28362
2007-07-31 18:08:40 +00:00
Filippos Karapetis
32c87556de
The SFX resource for the IHNM demo is different
...
svn-id: r28138
2007-07-18 16:14:40 +00:00
Filippos Karapetis
101dc5cb20
Improved check for the patched sound file used in ITE intro
...
svn-id: r28070
2007-07-14 14:18:45 +00:00
Filippos Karapetis
0ed332acba
Fix for bug #1751344 - "ITE: p2_a.iaf not played correctly"
...
svn-id: r28018
2007-07-10 23:22:44 +00:00
Filippos Karapetis
bf24bff17e
Move to the correct file offset when using compressed sounds in ITE
...
svn-id: r27729
2007-06-26 13:38:24 +00:00
Filippos Karapetis
2c3cbf444a
Improvements to the SAGA compressed sound support
...
svn-id: r27717
2007-06-25 20:20:59 +00:00
Filippos Karapetis
78addd0d66
Put a comment in its correct location
...
svn-id: r27716
2007-06-25 19:10:50 +00:00
Filippos Karapetis
23c8240048
Add support for compressed sound effects, digital music and speech to the SAGA engine
...
svn-id: r27713
2007-06-25 18:23:01 +00:00
Filippos Karapetis
0d4a3c28d9
IHNM: Button textures are loaded correctly now for buttons in the option and quit panel. Also, implemented the voices/subtitles toggle functionality and fixed widget placement a bit
...
svn-id: r27388
2007-06-13 19:41:27 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Andrew Kurushin
64c3407500
extract GameDescriptions to separate files (this will help compress_saga tool to detect sound resource)
...
svn-id: r22433
2006-05-13 10:30:38 +00:00
Max Horn
27307acd7c
Moved the AudioCDManager as well as class AudioStream and its (standard) subclasses to namespace Audio
...
svn-id: r22231
2006-04-29 22:33:31 +00:00