aboutsummaryrefslogtreecommitdiff
path: root/sound/fmopl.cpp
AgeCommit message (Collapse)Author
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-02-11Change CVS keywords to SVN keywordsMax Horn
svn-id: r20515
2006-01-30Wrong #ifdefChris Apers
svn-id: r20314
2006-01-18Update copyright noticeEugene Sandulenko
svn-id: r20088
2005-12-03Not needed anymore :)Chris Apers
svn-id: r19735
2005-11-27Patch #1341626: "New GP32 port"Eugene Sandulenko
svn-id: r19710
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-09-03Change PalmOS identChris Apers
svn-id: r18756
2005-07-30Remove trailing whitespaces.Eugene Sandulenko
svn-id: r18604
2005-06-24For consistency, specify directory when including files.Torbjörn Andersson
svn-id: r18454
2005-06-24When including files from common/, explicitly use the common/ prefixMax Horn
svn-id: r18444
2005-06-21Patches needed to build for SYMBIAN32 WINS/GCC added.Lars Persson
Test built for Symbian and run on P910i without any major problems. Test built for MSVC6. Changed parts seems to compile ok but there are some problems with MSVC6 and some of the targets which the EPOC build does n't support (KYRA,SAGA). svn-id: r18430
2005-03-11PalmOS : ARM optimized OPL driverChris Apers
svn-id: r17079
2005-01-28Add medium quality sound for FOTAQNicolas Bacca
svn-id: r16676
2005-01-10eek, we put a static RandomSource instance into every file that included ↵Max Horn
fmopl.h... svn-id: r16532
2005-01-01Updated copyrightMax Horn
svn-id: r16398
2004-10-22Prepare true AdLib support on PalmOSChris Apers
svn-id: r15649
2004-05-09Config sample switch for WinCENicolas Bacca
svn-id: r13815
2004-03-13Patch #902111: Change remaining random function calls to use RandomSourceMax Horn
svn-id: r13262
2004-02-24the OSystem changes we discussed on the ML (note: renaming of the existing ↵Max Horn
OSystem API is not yet finished); porters will have to fix their ports to get them to compile again svn-id: r13036
2004-01-06updated copyright noticeMax Horn
svn-id: r12176
2003-11-08cleanup whitespacesPaweł Kołodziejski
svn-id: r11221
2003-11-07spelling fixesJonathan Gray
svn-id: r11180
2003-10-03fixed compilation under msvc7Paweł Kołodziejski
svn-id: r10562
2003-09-19work around silly bug in Microsoft Visual Studio .NET 2003. M$ does not stop ↵Max Horn
at breaking HTML and Java, no, now they have to mutilate C/C++, too. MS-C instead of ANSI-C, anybody? *grmbl* svn-id: r10319
2003-09-10moved declaration of error/warning/debug from engine.h to util.h; added voc.cppMax Horn
svn-id: r10150
2003-07-11Reverted to "old" YM3812 (FMOPL) emulator code.Jamieson Christian
Until specific information regarding the benefits of migrating to the new emulator can be made available, the "old" code will remain in effect for the benefit of slower hardware platforms such as some WinCE-based devices. svn-id: r8903
2003-07-07#include scummsys.h so that our custome free() gets usedMax Horn
svn-id: r8849
2003-06-18Use stdafx.h instead of manually including system headers.Marcus Comstedt
svn-id: r8541
2003-06-01Made some conversions explicit to prevent VC.NET 2003 from complainingBertrand Augereau
svn-id: r8254
2003-05-04new fmopl (from adplug, which has it from mame; we can use it under the LGPL ↵Max Horn
should we ever have to) svn-id: r7328
2003-03-06updated copyrights headersPaweł Kołodziejski
svn-id: r6726
2003-03-06and more cleanup ....Paweł Kołodziejski
svn-id: r6719
2003-02-13fixed warningMax Horn
svn-id: r6604
2003-02-13Bug 683544Oliver Kiehl
svn-id: r6603
2003-01-30fix warningMax Horn
svn-id: r6579
2003-01-29Change AdLib emulation quality for slower devices - added ↵Nicolas Bacca
PROP_GET_FMOPL_ENV_BITS and PROP_GET_FMOPL_EG_ENT svn-id: r6573
2002-09-08rewrote config class; cleanup; code restructuringMax Horn
svn-id: r4903
2002-08-21fixed one-off-error (I hope this fix is right?); use calloc instead of ↵Max Horn
malloc to ensure struct is zeroed svn-id: r4795
2002-05-08Major cleanup of fmopl, and change incorrect uint32 typecasting.James Brown
Midi Emulation driver sounds a lot better now. svn-id: r4235
2002-04-23Remove warning from file.James Brown
svn-id: r4064
2002-04-23LGPL'ed FMOpl from AdPlug.James Brown
svn-id: r4063
2002-04-21Add boilerplate license to some files, to satisfy Debian types :)James Brown
fmopl.c/fmopl.h are infringing on the GPL at the moment. We either need to replace these, or get permission to relicense them, before 0.2.0 svn-id: r4036
2002-04-11Large pointless reindentation of all the code. Also fixed a few mistakesJames Brown
in the object flags code cleanup. Flags used: indent *.cpp -br -bap -nbc -lp -ce -cdw -brs -nbad -nbc -npsl -nip -ts2 -ncs -nbs -npcs -nbap -Tbyte -Tuint32 -Tuint8 -Tuint16 -TArrayHeader -TMemBlkHeader -TVerbSlot -TObjectData -Tvoid -TImageHeader -TRoomHeader -TCodeHeader -TResHdr -TBompHeader -TMidiChannelAdl -TGui -TScumm -TSoundEngine -TPart -TPlayer svn-id: r3908
2002-03-13Fix an OB1 and typecast. Need to find out cause of invalid object index to ↵James Brown
begin with.. svn-id: r3738
2002-03-10Removed more warnings and logic errors.James Brown
Now compiles with -Wall under GCC. svn-id: r3722
2002-03-06Add Matti Hmlinen's patch to suppress warningsTravis Howell
svn-id: r3664