Commit Graph
1310 Commits
Author SHA1 Message Date
Max Horn 47b2f533f0 Fixed some warning
svn-id: r28638
2007-08-16 18:42:28 +00:00
Kari Salminen c987d6aaf0 Added rudimentary classes for different AGI sound resources (IIgsMidi, IIgsSample, PCjrSound). Made existing code to at least work with PCjrSound.
svn-id: r28630
2007-08-15 22:00:31 +00:00
Kari Salminen b99153050a Moved AgiSound definition around and also changed it from a struct to a class.
svn-id: r28629
2007-08-15 18:37:52 +00:00
Kari Salminen ec3f37956d Removed unneeded code from inside #if 0 ... #endif -clauses.
svn-id: r28628
2007-08-15 16:46:37 +00:00
Kari Salminen fa9a6cef84 Removed use of decodeSound(int resnum). Not needed at the moment (Probably going to be replaced by other functionality later).
svn-id: r28627
2007-08-15 16:44:13 +00:00
Kari Salminen fe9bb43622 Removed use of USE_IIGS_SOUND (#define).
svn-id: r28626
2007-08-15 16:40:45 +00:00
Kari Salminen d4998087aa Changed use of USE_CHORUS (#define) to g_useChorus (static boolean).
svn-id: r28625
2007-08-15 16:31:15 +00:00
Kari Salminen 4d83eef351 Made AGI's 4-channel PCjr sound not need structure packing pragmas anymore. Also added more use of little endian reading macros.
svn-id: r28624
2007-08-15 15:55:38 +00:00
Kari Salminen e888aa1217 Shuffled around AgiGameID's declaration and an include to get stuff hopefully working now with GCC too.
svn-id: r28616
2007-08-14 13:36:03 +00:00
Kari Salminen f55c8407b0 Added forward declaration for enum AgiGameID (Was breaking compilation on GCC).
svn-id: r28615
2007-08-14 13:12:06 +00:00
Kari Salminen 8a8b97c230 Moved Apple IIGS related structs' read & finalize functions' implementations to sound.cpp and left the declarations in sound.h.
svn-id: r28614
2007-08-14 12:54:57 +00:00
Kari Salminen af85709cfd Defined some functions in Agi::SoundMgr and moved stuff generally around between AGI's sound.h and sound.cpp. Assimilated calcTrueSampleSize into another function.
svn-id: r28613
2007-08-14 12:44:44 +00:00
Kari Salminen 27ea9d581b Unified intendation, purely visual changes.
svn-id: r28611
2007-08-14 08:49:20 +00:00
Kari Salminen cbba39d0bb Not saving Apple IIGS instrument header's unneeded info anymore (Priority increment and spare byte).
svn-id: r28610
2007-08-14 08:47:49 +00:00
Kari Salminen 7460eb55a1 Added a couple of simple AgiSound stop, play, isPlaying-functions.
svn-id: r28598
2007-08-13 21:15:27 +00:00
Kari Salminen eb7dd9970f Grouped wave lists together into oscillators (Oscillators always consists of two waves).
svn-id: r28597
2007-08-13 16:05:46 +00:00
Kari Salminen 985ac6ceaa Made calcTrueSampleSize seek back to stream's start when ending the function.
svn-id: r28595
2007-08-13 15:18:44 +00:00
Kari Salminen 8801cf9b3c Moved read- and finalize-functions into corresponding structs and fixed calls to them where needed.
svn-id: r28594
2007-08-13 15:13:58 +00:00
Kari Salminen c0cde76df9 Added more functions to help with determining the Apple IIGS samples' real lengths.
svn-id: r28592
2007-08-13 14:06:30 +00:00
Max Horn 3f22960a65 Fix warning() format string
svn-id: r28518
2007-08-11 08:16:18 +00:00
Kari Salminen 6ea171189b Added Apple IIGS sample's true size calculation (A zero byte can end the sample prematurely).
svn-id: r28514
2007-08-10 15:33:07 +00:00
Kari Salminen 9df29f1123 Parsing Apple IIGS wave info into more easily accessible variables in the memory.
svn-id: r28513
2007-08-10 13:04:59 +00:00
Kari Salminen f200150590 Added Apple IIGS instruments and wave file loading.\n(Apple IIGS music playing is broken at the moment).
svn-id: r28508
2007-08-09 17:44:07 +00:00
Kari Salminen ae1f66994e Brought back and changed some variables from inside a #if 0 ... #endif
svn-id: r28507
2007-08-09 17:26:41 +00:00
Kari Salminen 89c30c871f Removed old loadInstruments().
svn-id: r28506
2007-08-09 17:11:38 +00:00
Kari Salminen 03d5bbf253 Added a couple of new constants and modified an existing one.
svn-id: r28505
2007-08-09 17:07:36 +00:00
Travis Howell 760986259c Fix compile warnings.
svn-id: r28501
2007-08-09 05:43:58 +00:00
David Corrales 6856535010 Merged fsnode with trunk: r27971:28460
svn-id: r28462
2007-08-05 19:34:20 +00:00
Kari Salminen 44ddb2419b Fixes compilation error C2666: 'pow' : 7 overloads have similar conversions on Windows (VS2003), Xbox (VS2003) and Xbox 360 (VS2005). Thanks to Carch for reporting the compilation problems.
svn-id: r28446
2007-08-04 12:16:10 +00:00
Kari Salminen 532a662f5a Some Apple IIGS sound chip playing mode defines etc.
svn-id: r28445
2007-08-04 12:05:32 +00:00
Torbjörn Andersson 3447c0e264 Tell the user if saving a game fails. (I haven't tested the saveGameSimple()
function, since I don't know when it's used.) This should fix bug #1767237
("AGI: Saving games to non existing path").

svn-id: r28441
2007-08-04 06:18:28 +00:00
Kari Salminen ff8ed07958 Added Apple IIGS arrow cursor data.
svn-id: r28436
2007-08-03 18:20:58 +00:00
Kari Salminen 02103a65a2 Figured out most missing parts of the Apple IIGS sample header. Added methods for reading Apple IIGS instrument headers.
svn-id: r28432
2007-08-03 14:22:20 +00:00
Kari Salminen af16be07a1 Added reading of volume parameter from Apple IIGS AGI sample header.
svn-id: r28405
2007-08-02 11:39:45 +00:00
Kari Salminen 8299835cad Added methods for reading Apple IIGS AGI samples and creating AudioStream-objects out of them. Commented out some code to make things compile.
svn-id: r28404
2007-08-02 11:10:26 +00:00
Kari Salminen 8e5fb44fcb Added data for the Atari ST AGI palette and Apple IIGS AGI palettes V1 and V2.
svn-id: r28387
2007-08-01 18:14:10 +00:00
Filippos Karapetis e27e8875f6 AGI game strings which are substituted in game texts may contain values as well, so use agiSprintf on them to substitute any values they may contain. Fixes bug #1760541 - "PQ1: Text output garbled"
svn-id: r28235
2007-07-27 12:59:41 +00:00
Filippos Karapetis a5e6b75edb Re-enabled the 3 entries that can't have menus (KQ3 ST, KQ3 DOS 1.01, SQ1 DOS 1.0X). The ESC key will pause the game in those 3 games
svn-id: r28129
2007-07-17 20:17:28 +00:00
Neil Millstone 91426f82c6 Porting DS word completion keyboard changes from branch0-10-0.
svn-id: r28125
2007-07-16 22:55:44 +00:00
Kari Salminen 16529e58e6 Added 3 different Amiga AGI palettes (From oldest to newest). Changed initPalette so its easier to enable the usage of those palettes later.
svn-id: r28114
2007-07-15 21:33:28 +00:00
Filippos Karapetis 6376321e5a Enabled menus in some old AGI games (released in 1986) which did not have menus them originally: KQ1 Amiga and ST and early versions of KQ3 Amiga, SQ1 ST, SQ1 DOS and SQ1 Amiga. The GF_FORCEMENUS flag has been remaned to GF_MENUS. Also, two problematic versions of KQ3, a problematic version of SQ1 and a problematic version of Mixed up Mother Goose have been disabled. Finally, a duplicate detection entry for SQ1 has been removed
svn-id: r28095
2007-07-15 06:24:39 +00:00
Filippos Karapetis ec742cb4fd Cleaned up comments
svn-id: r28034
2007-07-11 16:52:56 +00:00
Filippos Karapetis 1b17f2d6a7 Enable menus for Space Quest 1 (PC) 1.1A
svn-id: r28033
2007-07-11 16:49:44 +00:00
Filippos Karapetis 61d4dda19a Fix for SQ1 Amiga (v 1.2 1986): menus are forced in this version too, like with KQ3 Amiga
svn-id: r28025
2007-07-11 12:28:07 +00:00
Filippos Karapetis 1dfc0614b7 Fix for bug #1751390 in LSL1. When choosing a menu option, an appropriate event is set. If that event is equal to 0x20, it was incorrectly triggered when the space bar key was pressed
svn-id: r28024
2007-07-11 11:46:02 +00:00
Torbjörn Andersson 7a7212b9c1 Fixed bug #1751385 ("LSL: Impossible to enter "Number 9""), which was
introduced when migrating to KEYCODE constants. Considering how silly the bug
was, I probably introduced it myself.

svn-id: r28017
2007-07-10 21:24:58 +00:00
Kari Salminen 6e77abc07f Add Amiga-style menus (FR #657645). Used in Amiga-rendering mode.
svn-id: r28015
2007-07-10 18:32:24 +00:00
Kari Salminen 969df42d01 Make AGI's button drawing use AgiButtonStyle. Doesn't use Amiga-style yet. It's next.
svn-id: r28014
2007-07-10 18:08:35 +00:00
Torbjörn Andersson 83e038de19 For some reason, AgiTextColor(amigaBlack, _olderAgi? amigaOrange : amigaPurple)
caused a linking error on my computer. Worked around that, and added curly
braces for (IMO) better readability.

svn-id: r28013
2007-07-10 17:41:40 +00:00
Kari Salminen b2cae8fe15 Oops. AgiButtonStyle::getColor's color parameters were bool rather than int. Fixed.
svn-id: r28011
2007-07-10 17:04:09 +00:00