aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/sound.cpp
AgeCommit message (Collapse)Author
2010-01-21Silenced some cppcheck warnings.Torbjörn Andersson
svn-id: r47427
2010-01-08Switch Mixer::playInputStream to use DisposeAfterUse::FlagMax Horn
svn-id: r47182
2010-01-08Move DisposeAfterUse::Flag from Common to global namespace, and into a new ↵Max Horn
header common/types.h svn-id: r47180
2010-01-03Reduce header dependencies for AGI engine.Eugene Sandulenko
svn-id: r46942
2009-11-02Changed foo(void) to foo() in almost all non-backend source filesMax Horn
svn-id: r45616
2009-10-20AGI: Change g_useChorus to SoundMgr::_useChorus, and add FIXME comment about ↵Max Horn
it always being true (so maybe it can be removed?) svn-id: r45266
2009-10-18Introduced new type Common::DisposeAfterUse::FlagMax Horn
svn-id: r45233
2009-07-14Remove ioFailed() usage from AGI engine.Kari Salminen
svn-id: r42495
2009-06-19Fixed a warning about an uninitialized variableFilippos Karapetis
svn-id: r41660
2009-06-17Preliminary support for CoCo3 music.Eugene Sandulenko
svn-id: r41618
2009-06-13Added sanity checking to stopSound() and a bit more debug outputEugene Sandulenko
svn-id: r41501
2009-06-06Whitespace fixes and C++ commentsEugene Sandulenko
svn-id: r41239
2009-05-31The error() and warning() functions add ! and newline automatically. (I didn'tTorbjörn Andersson
look at debug() and debugC(), since I'm really bored with this now. :-) svn-id: r41061
2009-05-24Strip trailing whitespaces in the whole code base.Johannes Schickel
svn-id: r40867
2009-05-18Fix bug with AGI ignoring music volume.Eugene Sandulenko
svn-id: r40703
2009-05-10clean up AGI fillAudioWillem Jan Palenstijn
svn-id: r40435
2009-01-29A ton of code formatting fixes; also fixed warnings about single line loops ↵Max Horn
like 'while(cond);' by inserting newlines svn-id: r36127
2009-01-03FormattingEugene Sandulenko
svn-id: r35701
2008-11-20AGI: fsnodeNameEqualsIgnoreCase and FSNode usage should be replaced by SearchManMax Horn
svn-id: r35130
2008-10-13Patch #2131406: AGI: Fix Crash with Apple][ Instruments.Kari Salminen
Applied the patch as it is, thanks clone2727. Now Apple IIGS AGI games don't crash anymore if the instruments (They're in *.SYS16) or the instrument samples (They're in SIERRASTANDARD) aren't found. svn-id: r34798
2008-10-02Renamed FilesystemNode -> FSNodeMax Horn
svn-id: r34716
2008-09-30AGI: Another case where it is better to use FSNodes directly, instead of ↵Max Horn
converting them to path strings svn-id: r34708
2008-09-13Big patch changing the signature of various Stream methods (some ports may ↵Max Horn
need to be slightly tweaked to fix overloading errors/warnings) svn-id: r34514
2008-09-03Moved FilesystemNode / FSList to namespace Common; also got rid of some ↵Max Horn
'typedef Common::String String;' name aliases svn-id: r34302
2008-08-13Fixed initialization of some SoundMgr-class's member variables. Moved ↵Kari Salminen
_sndBuffer's allocation to SoundMgr's constructor and its deallocation to the destructor. Made fillAudio SoundMgr's method and removed a superfluous global static variable 'int16 *buffer'. Should help with the occasional crashes when starting the first sound in an AGI game. svn-id: r33822
2008-08-13Reverted r33815 (But not r33816).Kari Salminen
svn-id: r33819
2008-08-13Shutting up Valgrind about using uninitialised values from array _chn in ↵Kari Salminen
function stopNote. svn-id: r33816
2008-08-13Changed Agi::SoundMgr's sound buffer to a member array of size BUFFER_SIZE. ↵Kari Salminen
Also added initialization of _playing to false in SoundMgr's constructor. Hopefully helps with the occasional crashes in the sound code when starting the first sound in an AGI game. svn-id: r33815
2008-04-21Fix timing in Apple IIGS MIDI parsing. Now sounds should get triggered at ↵Kari Salminen
the correct times without the previously observed time jitter effect. svn-id: r31636
2008-04-17Fixed gcc warnings.Johannes Schickel
svn-id: r31550
2008-04-17Fix building with GCC (a few extra ;'s got in there somehow).John Willis
svn-id: r31545
2008-04-17Implemented Apple IIGS MIDI playing with software mixing.Kari Salminen
(NOTE: As you can hear this is a work in progress ;-)) - Added IIgsSoundMgr class for handling Apple IIGS sounds and moved functionality inside it - Added IIgsMidiChannel class for handling Apple IIGS MIDI channels - Made sound effects playing use the IIgsSoundMgr class too - Modified software mixing routine to mix multiple sounds svn-id: r31544
2008-04-15Make convertWave-function static as it uses no member variables.Kari Salminen
svn-id: r31510
2008-04-15Cleanup (Remove unneeded functions and rename a struct correctly).Kari Salminen
svn-id: r31509
2008-04-15Move MIDI program change mappings to their own structs (Useful for later ↵Kari Salminen
changes). svn-id: r31508
2008-04-08Implement the full range of Apple IIGS MIDI program number to instrument ↵Kari Salminen
mapping. Switch to using 8-bit signed sample data with Apple IIGS (In preparation for mixing multiple channels). Make Apple IIGS wavefile handling use SharedPtr and Array. svn-id: r31451
2008-04-03Add Apple IIGS MIDI program number to instrument number mappings (Both for ↵Kari Salminen
the older instrument set used by SQ1 only and for the newer instrument set used by all the other tested Apple IIGS games). svn-id: r31371
2008-04-03After further testing it seems Apple IIGS midi playing speed is actually 60 ↵Kari Salminen
ticks per second. Hurrah! svn-id: r31367
2008-04-03Fix naming of the Apple IIGS midi speed variable and its value (Was ↵Kari Salminen
erronously named bpm although was really ticks per second rather than ticks per minute). svn-id: r31366
2008-04-03Fix Apple IIGS midi playing speed (Based on tests with Apple IIGS KQ1 and ↵Kari Salminen
SQ1 under MESS 0.124a) svn-id: r31365
2007-09-19Merged common/stdafx.h into common/scummsys.h. All referencing files have ↵Nicola Mettifogo
been updated. svn-id: r28966
2007-09-18Patch #1768757: Merge fsnode-gsoc into trunk (MAJOR change, will break ↵Max Horn
compilation on some ports) svn-id: r28944
2007-09-11Adding various FIXME comments to bogus (non-self-explanatory) existing FIXME ↵Max Horn
comments; and some other related cleanup svn-id: r28890
2007-09-03Fix warning about unused static functionMax Horn
svn-id: r28847
2007-09-03Some updates to preagi's sound system and code cleanupFilippos Karapetis
svn-id: r28844
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-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