aboutsummaryrefslogtreecommitdiff
path: root/sound
AgeCommit message (Collapse)Author
2006-03-29Do not #include endian.h in scummsys.h (cuts down deps on endian.h from ~400 ↵Max Horn
to ~250). Many greetings to eriktorbjorn, and have fun recompiling. svn-id: r21500
2006-03-28Renamed various container isEmpty() methods to empty() to match STL conventionsMax Horn
svn-id: r21472
2006-03-19Updated/added some comments on VOC/WAVE functionsMax Horn
svn-id: r21384
2006-03-19Revert FLAG_AUTOFREE changes to loadWAVFromStreammakeWAVStreamTravis Howell
svn-id: r21376
2006-03-14Added workaround in FMOPL for the pathological case where a note was turned offTorbjörn Andersson
while still at the very beginning of the "attack" phase. This is the very lowest point on the attack curve, yet it would continue from the beginning of the release curve, i.e. its very highest point. This is what caused Kyra to often play low-frequency notes at the very beginning of a new song. (That, and a truly bizarre function for initialising the channels.) The proper fix would be to locate the correct point on the release curve and continue from there. For now, though, only handle the trivial case. svn-id: r21302
2006-03-14Fixed a potential bug that could cause memory to be read out-of-bounds.Torbjörn Andersson
(Unfortunately, this does not fix the Kyra bug I'm looking for.) In the most extreme case: * DR and RR will point to &DR_TABLE[60], and AR will point to &AR_TABLE[60] * SLOT->KSR will be 0 * CH->kcode will be 15 In that case, it will attempt to access AR[15], RR[15] and DR[15], i.e. AR_TABLE[75] and DR_TABLE[75]. So these arrays need to be 76 elements, not 75. We used to initialise element 75, but this was changed to 74 to match the size of the arrays. Buf if my reasoning is correct, it was the arrays that were too small. svn-id: r21301
2006-03-04WIP of maemo portEugene Sandulenko
svn-id: r21055
2006-03-03Hiding the implementation of ADPCMInputStream from the public, in favor of a ↵Max Horn
factory function (just like with the other AudioStream subclasses) svn-id: r21043
2006-03-03It's really 'MPEG', not 'Mpeg'Max Horn
svn-id: r21042
2006-03-03Explain the (admittedly strange) usage of some of our makeXXXStream factory ↵Max Horn
functions svn-id: r21040
2006-02-27SysEx data now passed around with const pointers. Permits simplification of ↵Jamieson Christian
some SysEx client code. Testing on Windows. Developers on other platforms, please verify integrity of music handling in your respective MidiDrivers. svn-id: r20952
2006-02-25Moved dummy MIDI driver from backends/ to sound/ (this fixes bug #1435221)Max Horn
svn-id: r20878
2006-02-23fixed warnings for msvc7Paweł Kołodziejski
svn-id: r20831
2006-02-12Reduced data duplication in module.mk files; added module.mk files for null ↵Max Horn
and x11 backends; added engines/module.mk svn-id: r20584
2006-02-11- Use midi drivers only when neededChris Apers
- disable zodiac midi driver with scumm engine since it doesn't work with it in ARM mode (??) svn-id: r20524
2006-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20515
2006-02-07Removed .cvsignore filesMax Horn
svn-id: r20424
2006-01-30Wrong #ifdefChris Apers
svn-id: r20314
2006-01-27Fix memory leak, if called directly.Travis Howell
svn-id: r20199
2006-01-18Update copyright noticeEugene Sandulenko
svn-id: r20088
2006-01-14Lowered FluidSynth's default gain, and added config file and command-lineTorbjörn Andersson
options to specify it. FluidSynth's gain ranges from 0.0 through 10.0 and is probably measured in decibel, but to keep things simple, ScummVM uses settings from 0 through 1000 instead. (Though currently there's no guard against invalid settings.) This is a slightly revised version of the non-GUI part of patch #1336171. svn-id: r20030
2005-12-30* Replaced MDT_PREFER_NATIVE/MDT_NATIVE by MDT_PREFER_MIDI/MDT_MIDI).Max Horn
* Changed MidiDriver::createMidi so that if MD_ADLIB is passed, it now *does* instantiate the adlib driver. * Rewrote MidiDriver::detectMusicDriver (code should be clearer now, and hopefully easier to adapt/maintain). Note that the behavior changed slightly (this may require some tweaking). * Added MidiDriver::findMusicDriver which works similar to the old MidiDriver::parseMusicDriver but returns the full MidiDriverDescription and ignores all characters in the passed driver name following a colon ":". * Changed MidiDriver::parseMusicDriver to use MidiDriver::findMusicDriver. * Changed game engines to match the changes made to MidiDriver. * Modified SCUMM engine to not record the selected midi/music driver (in _midiDriver), but rather the music *type* (in _musicType). svn-id: r19859
2005-12-29Disable 'coreaudio' driver name alias for now -- it makes the CoreAudio ↵Max Horn
driver appear twice in the GUI svn-id: r19845
2005-12-29MidiDriver: Some cleanup, added some comments/TODOs, preparations for a ↵Max Horn
potential cleanup svn-id: r19844
2005-12-27Fix MI1 & BS1 bugs reported in #1276592 - both are related to the number of ↵Joost Peters
open file handles. svn-id: r19837
2005-12-26New CoreMIDI midi backend for OS XMax Horn
svn-id: r19832
2005-12-11Simplify ADPCM IMA decoding (based on IMA docs). The result will only be ↵Max Horn
99.9% identical, but the code should be faster on most modern machines svn-id: r19777
2005-12-09Unified IMA code a little bitMax Horn
svn-id: r19767
2005-12-09URL pointing to an IMA format referenceMax Horn
svn-id: r19766
2005-12-031. New build structure for Symbian builds to allow easier build and project ↵Lars Persson
updates 2. Updated framework files for new structure 3. Uncommented Debug statements in vorbis.cpp (Should probably be removed alltogether. 4. Incorporated Sevs code formatting changes in the new Symbian source structure. 5. Removed/Changed EScummVM to ScummVM instead, hopefully most cases covered. 6. Beginning vibration support to be used for Scumm shake effects (Work ongoing by SumthinWicked) 7. Replaced the ScummVM icon for the FavIcon and upscaled the icon to 32x32. I think it looks ok, comments are welcome. 8. Built for S60V1 and UIQ2 targets from the cvs 9. Updated Readme with new build instructions. Any comments are welcome. Hopefully the other builds are not affected by this and all Sevs code updates are also incorporated. svn-id: r19739
2005-12-03Not needed anymore :)Chris Apers
svn-id: r19735
2005-12-03Fixed (wrongly) changed address in the header.Johannes Schickel
svn-id: r19733
2005-12-02Updated to follow ScummVM coding standards i.e spaces, indents & "studpid" ↵Lars Persson
things fixed. svn-id: r19728
2005-12-01Working Vorbis support for Symbian OSLars Persson
svn-id: r19725
2005-11-27Patch #1341626: "New GP32 port"Eugene Sandulenko
svn-id: r19710
2005-11-13Revert as requested.Travis Howell
svn-id: r19582
2005-11-11Fix sound looping regression in simon2 (Windows).Travis Howell
Sound flags were been reset. svn-id: r19557
2005-11-06the PSP port of libtremor was updated, so this define is no longer neededJoost Peters
svn-id: r19488
2005-11-02Avoid using powf/expf/logf under Mac OS X, as they cause binary & compile ↵Max Horn
incompatibilities with older system versions svn-id: r19396
2005-10-21Fix MS IMA ADPCM decoder. I like Microsoft so much for reinventing anotherEugene Sandulenko
standard. svn-id: r19203
2005-10-19Improved IMA ADPCM decoder. It appeared that MS violated yet another standardEugene Sandulenko
and nibbles order in samples appeared to be swapped. Had to untemplate whole thing over again because I have no idea how to speicalize one of two parameters in templates. Now voices are clean but have some ticks, looks like overload. ITE wasn't broken ;) svn-id: r19166
2005-10-19Simplified common buffer reader. Implemented now unused Microsoft IMAEugene Sandulenko
ADPCM buffer reader. These folks invented ye another incompatible standard and here it will sit #if 0'ed just for a case. svn-id: r19164
2005-10-18Fix bug #1221549 "MT32emu: doesn't compile under gcc 3.4.2 / i386"Eugene Sandulenko
svn-id: r19147
2005-10-18Update FSF address. Eek. Actually that took place on May 1, 2005Eugene Sandulenko
svn-id: r19142
2005-10-12PalmOS ARM tooChris Apers
svn-id: r19040
2005-10-12Looks like my pitch wheel change still has the ability to break things. SeeTorbjörn Andersson
bug #1324103. I've changed it - again - so that now it only centers the pitch wheels on unload if a new mpCenterPitchWheelOnUnload property has been set. Currently only the SAGA engine does that, so if it still breaks it only breaks SAGA. I've also fixed what looked like an unintentional fall-through in the MidiParser::property() function. Surently that can't cause any new regressions? Please. svn-id: r19032
2005-10-11Moved the pitch wheel centering to unloadMusic() instead, since having itTorbjörn Andersson
in allNotesOff() broke the Kyra music. I have no idea why. svn-id: r19023
2005-10-10Removed the "reset all controllers" message. It currently breaks on Adlib,Torbjörn Andersson
and I don't want to have to worry about it. Centering the pitch wheel is the change that I primarily wanted to make, and that should be supported by every MIDI driver we have. svn-id: r18999
2005-10-10I noticed yesterday that if you change music in IHNM at the "right" moment,Torbjörn Andersson
the music will be horribly out of tune because the pitch wheel setting from the old music will still apply. I hope allNotesOff() is the correct place to ensure that the pitch wheel is centered. svn-id: r18998
2005-09-22Fix regression caused by recent code cleanup. Each input byte should beEugene Sandulenko
processed twice, so even if stream end is reached, there should be another iteration. Otherwise it always returned one byte less than expected. svn-id: r18859