aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
AgeCommit message (Collapse)Author
2007-08-28Fix relative pitch handling (It's signed, was interpreted as unsigned before).Kari Salminen
svn-id: r28759
2007-08-21An encountered zero in an Apple IIGS sample stream turns off looping for ↵Kari Salminen
that stream. Implemented this. svn-id: r28688
2007-08-21Added note of clarification on enum AgiSoundType's different values.Kari Salminen
svn-id: r28684
2007-08-19Made Apple IIGS MIDI file parsing work (They aren't completely standard MIDI ↵Kari Salminen
files). Enables playing the MIDI files (No sound! Only stepping through). Speed's probably not correct. svn-id: r28674
2007-08-19Removed superfluous variable checkings. Made it so that Apple IIGS mixing ↵Kari Salminen
code doesn't try to mix MIDI sounds yet as mixing them isn't yet supported. svn-id: r28673
2007-08-19Fixes previously crashing sound. Crash happened because of PCjr 4-channel ↵Kari Salminen
mixing code trying to use uninitialized values (phase, ins etc) when mixSound was called before anything was playing. svn-id: r28672
2007-08-19Some cleanup / const correctness / OOficationMax Horn
svn-id: r28671
2007-08-19Fixed warning about global symbol 'chn' being shadowed by local declaration ↵Max Horn
'chn' (note: naming a global var 'chn' is probably a bad idea. And using a class would be far better anyway ;) svn-id: r28669
2007-08-18Changed Apple IIGS sample playing frequency multiplier from 1076.0 to C6 ↵Kari Salminen
(i.e. about 1046.5). Commented out a warning that comes too often. svn-id: r28657
2007-08-18Added support for playing Apple IIGS samples. The code's not very pretty at ↵Kari Salminen
the moment (Work in progress). Apple IIGS MIDI sound probably broken somehow at the moment. svn-id: r28656
2007-08-17Added a definition for Apple IIGS sound emulation mode, made sound ↵Kari Salminen
initialization set it when appropriate and instruments loading use it. svn-id: r28647
2007-08-16Fixed some warningMax Horn
svn-id: r28638
2007-08-15Added rudimentary classes for different AGI sound resources (IIgsMidi, ↵Kari Salminen
IIgsSample, PCjrSound). Made existing code to at least work with PCjrSound. svn-id: r28630
2007-08-15Moved AgiSound definition around and also changed it from a struct to a class.Kari Salminen
svn-id: r28629
2007-08-15Removed unneeded code from inside #if 0 ... #endif -clauses.Kari Salminen
svn-id: r28628
2007-08-15Removed use of decodeSound(int resnum). Not needed at the moment (Probably ↵Kari Salminen
going to be replaced by other functionality later). svn-id: r28627
2007-08-15Removed use of USE_IIGS_SOUND (#define).Kari Salminen
svn-id: r28626
2007-08-15Changed use of USE_CHORUS (#define) to g_useChorus (static boolean).Kari Salminen
svn-id: r28625
2007-08-15Made AGI's 4-channel PCjr sound not need structure packing pragmas anymore. ↵Kari Salminen
Also added more use of little endian reading macros. svn-id: r28624
2007-08-14Shuffled around AgiGameID's declaration and an include to get stuff ↵Kari Salminen
hopefully working now with GCC too. svn-id: r28616
2007-08-14Added forward declaration for enum AgiGameID (Was breaking compilation on GCC).Kari Salminen
svn-id: r28615
2007-08-14Moved Apple IIGS related structs' read & finalize functions' implementations ↵Kari Salminen
to sound.cpp and left the declarations in sound.h. svn-id: r28614
2007-08-14Defined some functions in Agi::SoundMgr and moved stuff generally around ↵Kari Salminen
between AGI's sound.h and sound.cpp. Assimilated calcTrueSampleSize into another function. svn-id: r28613
2007-08-14Unified intendation, purely visual changes.Kari Salminen
svn-id: r28611
2007-08-14Not saving Apple IIGS instrument header's unneeded info anymore (Priority ↵Kari Salminen
increment and spare byte). svn-id: r28610
2007-08-13Added a couple of simple AgiSound stop, play, isPlaying-functions.Kari Salminen
svn-id: r28598
2007-08-13Grouped wave lists together into oscillators (Oscillators always consists of ↵Kari Salminen
two waves). svn-id: r28597
2007-08-13Made calcTrueSampleSize seek back to stream's start when ending the function.Kari Salminen
svn-id: r28595
2007-08-13Moved read- and finalize-functions into corresponding structs and fixed ↵Kari Salminen
calls to them where needed. svn-id: r28594
2007-08-13Added more functions to help with determining the Apple IIGS samples' real ↵Kari Salminen
lengths. svn-id: r28592
2007-08-11Fix warning() format stringMax Horn
svn-id: r28518
2007-08-10Added Apple IIGS sample's true size calculation (A zero byte can end the ↵Kari Salminen
sample prematurely). svn-id: r28514
2007-08-10Parsing Apple IIGS wave info into more easily accessible variables in the ↵Kari Salminen
memory. svn-id: r28513
2007-08-09Added Apple IIGS instruments and wave file loading.\n(Apple IIGS music ↵Kari Salminen
playing is broken at the moment). svn-id: r28508
2007-08-09Brought back and changed some variables from inside a #if 0 ... #endifKari Salminen
svn-id: r28507
2007-08-09Removed old loadInstruments().Kari Salminen
svn-id: r28506
2007-08-09Added a couple of new constants and modified an existing one.Kari Salminen
svn-id: r28505
2007-08-09Fix compile warnings.Travis Howell
svn-id: r28501
2007-08-04Fixes compilation error C2666: 'pow' : 7 overloads have similar conversions ↵Kari Salminen
on Windows (VS2003), Xbox (VS2003) and Xbox 360 (VS2005). Thanks to Carch for reporting the compilation problems. svn-id: r28446
2007-08-04Some Apple IIGS sound chip playing mode defines etc.Kari Salminen
svn-id: r28445
2007-08-04Tell the user if saving a game fails. (I haven't tested the saveGameSimple()Torbjörn Andersson
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-03Added Apple IIGS arrow cursor data.Kari Salminen
svn-id: r28436
2007-08-03Figured out most missing parts of the Apple IIGS sample header. Added ↵Kari Salminen
methods for reading Apple IIGS instrument headers. svn-id: r28432
2007-08-02Added reading of volume parameter from Apple IIGS AGI sample header.Kari Salminen
svn-id: r28405
2007-08-02Added methods for reading Apple IIGS AGI samples and creating ↵Kari Salminen
AudioStream-objects out of them. Commented out some code to make things compile. svn-id: r28404
2007-08-01Added data for the Atari ST AGI palette and Apple IIGS AGI palettes V1 and V2.Kari Salminen
svn-id: r28387
2007-07-27AGI game strings which are substituted in game texts may contain values as ↵Filippos Karapetis
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-17Re-enabled the 3 entries that can't have menus (KQ3 ST, KQ3 DOS 1.01, SQ1 ↵Filippos Karapetis
DOS 1.0X). The ESC key will pause the game in those 3 games svn-id: r28129
2007-07-16Porting DS word completion keyboard changes from branch0-10-0.Neil Millstone
svn-id: r28125
2007-07-15Added 3 different Amiga AGI palettes (From oldest to newest). Changed ↵Kari Salminen
initPalette so its easier to enable the usage of those palettes later. svn-id: r28114