aboutsummaryrefslogtreecommitdiff
path: root/scumm/imuse.cpp
AgeCommit message (Collapse)Author
2005-08-14Replace warnings with debug, errors or printfs:Travis Howell
-To catch any missing cases/functions used. -To prevent users reporting warnings as bugs svn-id: r18682
2005-07-30Remove trailing whitespaces.Eugene Sandulenko
svn-id: r18604
2005-06-24When including files from common/, explicitly use the common/ prefixMax Horn
svn-id: r18444
2005-06-22Fixed warning. (And made some whitespace changes.)Torbjörn Andersson
svn-id: r18433
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-05-29WhitespaceTorbjörn Andersson
svn-id: r18296
2005-05-28Swapped the last two parameters to Sam & Max iMUSE command 257. This fixesTorbjörn Andersson
bug #1202071 and probably (it's much less obvious) bug #888248 as well. Since these parameters are both zero in all other known uses of this particular iMUSE command, it doesn't affect anything else. I don't know if it's correct, or if it sounds like in the original, but it sounds good to me. svn-id: r18284
2005-05-27Very minor cleanup.Torbjörn Andersson
svn-id: r18272
2005-05-27Added workaround for Sam & Max music issue at the Dino Bungie Memorial. AsTorbjörn Andersson
far as I can telL, the issue was caused by sloppy scripting, though it is of course perfectly possible that it worked with the original interpreter anyway. svn-id: r18270
2005-05-26Add 'MIDI' chunk to list of known iMuse music chunksMax Horn
svn-id: r18265
2005-05-26Be less agressive about re-using trigger slots. This fixes bug #888161,Torbjörn Andersson
hopefully without causing any regressions. svn-id: r18261
2005-05-26Properly use operator '%' to compute a queue wrap around, instead of relying ↵Max Horn
on the queue size to be a power of 2 and then abusing the '&' operator svn-id: r18259
2005-05-26Cleanup. (Mostly whitespace.)Torbjörn Andersson
svn-id: r18258
2005-05-26Fixed a glitch that could cause the music to stop when Sam & Max wereTorbjörn Andersson
thrown out of Bumpusville. svn-id: r18254
2005-05-25cleanupMax Horn
svn-id: r18251
2005-05-25Changed misleading 'isGM' name to 'isMIDI'; cleanup in the isMIDI/isMT32 methodsMax Horn
svn-id: r18248
2005-05-23Save the "Sam & Max" iMUSE triggers, otherwise we won't always be able toTorbjörn Andersson
restore the music state correctly. The one example I know of is when saving between using the hair and the powder on Frog Rock, but there are probably others as well. svn-id: r18229
2005-04-13Patches #1164217 "Updated GS Support + Percussion Remapping Patch" andEugene Sandulenko
#1181750 "Updated Native MIDI documentation". Thanks _tom a lot. svn-id: r17571
2005-04-12Patch #1180882 "GM/GS Percussion Remapping"Eugene Sandulenko
svn-id: r17569
2005-04-02Extremely minor consistency change.Torbjörn Andersson
svn-id: r17332
2005-03-09Use _chorus, not _effect_level, as parameter to chorusLevel(). I don'tTorbjörn Andersson
know for sure that this is correct - the MIDI device I'm using at the moment doesn't seem to support chorus level - but the more I look at it the more sense it makes. And it might fix bug #1159734. ("DOTT/SAM: GM Instrument Chorus Level Improperly Set") svn-id: r17049
2005-01-10system.h was being included in tons of places, without any good reason; ↵Max Horn
reduced this (total dependencies on system.h went down from 193 to 85 files) svn-id: r16527
2005-01-07cleanupMax Horn
svn-id: r16476
2005-01-01Updated copyrightMax Horn
svn-id: r16398
2004-12-03Fixed an Adlib regression with older games (e.g. EGA Loom, Indy 3 andTorbjörn Andersson
Monkey VGA) that was introduced by a recent "multi MIDI" change. The "old Adlib" property was set too late in the iMUSE player, so the Adlib driver would always think the game was new. I've removed this property from the iMUSE player, since it's only function appeared to be to pass it on to the Adlib player, and now set it in the Adlib player directly instead. Also removed some remaining "multi MIDI" traces from the iMUSE player that I believe were obsoleted by the aforementioned "multi MIDI" change. svn-id: r15974
2004-11-28Trying to cleanup the volume control mess inside the SCUMM engine: renamed ↵Max Horn
MusicEngine::setMasterVolume to setMusicVolume; fixed iMuse to use the correct method for setMusicVolume (previously modified the iMuse internal volume control); hooked up the volume control of various other music engines; added ScummEngine::setupVolume method which can be called whenever volume settings change, and which gurantees that those are handled uniformly svn-id: r15944
2004-11-27To really, truly fix the multi-midi race condition, the adlib driver is now ↵Jerome Fisher
always created before iMuse initialisation. This necessitated removing the multimidi toggle from the debug console. svn-id: r15912
2004-11-27- driver being NULL there is perfectly fine, Fingolfin :)Jerome Fisher
DCVS: ---------------------------------------------------------------------- svn-id: r15910
2004-11-26paranoiaMax Horn
svn-id: r15900
2004-11-26The Adlib MidiDriver is now initialised immediately when it is determined ↵Jerome Fisher
that it may be used. Doing this lazily potentially deadlocked when using MT-32 emulation in mixed MIDI/Adlib mode. svn-id: r15899
2004-09-28Rename remaining OSystem methods to match our coding guidelinesMax Horn
svn-id: r15332
2004-02-28renamed more OSystem methods to follow our naming scheme; renamed ↵Max Horn
NewGuiColor to OverlayColor; fixed some calls to error() in the SDL backend svn-id: r13087
2004-02-09Modified version of patch #892795 (Let scumvm -v show supported libs)Max Horn
svn-id: r12780
2004-01-06updated copyright noticeMax Horn
svn-id: r12176
2003-12-13cleanupMax Horn
svn-id: r11620
2003-11-16changed some shift operators to *, /Paweł Kołodziejski
svn-id: r11315
2003-11-08cleanup whitespacesPaweł Kołodziejski
svn-id: r11217
2003-10-17Another fix for Bug [817871] re hanging notes onJamieson Christian
pause with MT-32. Apparently the first fix doesn't work. svn-id: r10876
2003-10-17Added trace output for IMuse doCommand codes that we're not sureJamieson Christian
are even used by the game scripts. This is in preparation for a restructuring of the volume model. Also removed unused get_music_volume() member. svn-id: r10872
2003-10-15removed the kDefault*Volume constantsMax Horn
svn-id: r10816
2003-10-12Fix for Bug [817871]: Added MT-32 master volume adjustment to pause().Jamieson Christian
svn-id: r10759
2003-10-07Patch [818296] Modified MT-32 intialization sequence.Jamieson Christian
svn-id: r10666
2003-10-05Preliminary preparation for new YM2612 FM emulator.Jamieson Christian
All the hooks are in, but actual implementation needs to be checked for portability. svn-id: r10615
2003-10-03introduced namespace Scumm; made #include statements use scumm/ prefix ↵Max Horn
explicitly svn-id: r10571
2003-10-03const as const canMax Horn
svn-id: r10555
2003-10-02renamed class Scumm to ScummEngine (consisten with other engine names; also ↵Max Horn
makes room for a potential 'Scumm' namespace) svn-id: r10549
2003-10-01Fix for Bug [812737] ALL: pitchbend range with MT32Jamieson Christian
Manual scaling of pitchbends to account for the fact that the MT32 doesn't respond to RPN-based pitchbend range adjustments. Also tweaked the MT32 partial reserve settings per Bug [812740]. svn-id: r10521
2003-09-30Fixed MT-32 init not getting calledJamieson Christian
svn-id: r10501
2003-09-30Fix for Bug [812740] ALL: MT32: some notes cut off earlyJamieson Christian
logicdeluxe's patch to set MT-32 partial reserves equally for all channels, to ensure that entire notes don't get cut off. The patch as committed is slightly modified to reorder the MT-32 initialization sequence. The mods (1) ensure a brief delay between SysEx transmissions to give the MT-32 time to process each request, and (2) hopefully sequence the delays such that the ScummVM welcome message is actually readable and doesn't just flash for a split-second (as was the reported behavior in the past). svn-id: r10498
2003-09-29Cleanup, mostly related to matching up semanticsJamieson Christian
between Part and MidiChannel (which Part may derive from eventually). svn-id: r10480