aboutsummaryrefslogtreecommitdiff
path: root/simon/midi.cpp
AgeCommit message (Collapse)Author
2003-08-11More music volume management fixesJamieson Christian
svn-id: r9636
2003-08-11Fix for Bug [777589] SIMON1: Sound volume strangenessJamieson Christian
Fixed redundant, cumulative adjustments of _masterVolume on the individual channel volumes. This fixes problems with individual instruments changing volume by too much, or dropping out altogether, when changing the master music volume. svn-id: r9635
2003-08-08Added generic send() option to MidiChannel.Jamieson Christian
This circumvents problems doing generic send() calls to MidiDrivers that support more than 16 MIDI channels (i.e. Adlib). Because of the way it interacts with MidiDriver, Simon could have run into a problem if it tried to allocate more than 15 Adlib music channels (though this would only happen in very, VERY rare circumstances). Also fixed a problem with the channel numbering scheme used by MidiDriver_Adlib, in particular the percussion channel number. svn-id: r9604
2003-08-08More Simon shutdown cleanupJamieson Christian
svn-id: r9602
2003-08-08Fixed hang from double-lock of mutexJamieson Christian
svn-id: r9600
2003-08-01#include cleanup (explicityl specify the location for headers from common/, ↵Max Horn
so that we at some point can get rid of -Icommon; exception is made for stdafx.h, since a) we might want to rename it and b) might want to move it to the top level) svn-id: r9359
2003-07-24Fix for Bug [775534] 0.5.0 RC SIMON1DOS Random sfx notes during musicJamieson Christian
Corrected a problem with resource size computation for GMF sound effect resources. Since GMF resources have no size info, we were computing sizes with the assumption that each GMF appears in its own file, so the file size becomes the resource size. This is true for simon1dos music files but not for SFX files. This fix uses the resource offset pointers at the beginning of SFX files to properly compute the size of SFX resources. svn-id: r9155
2003-07-14Fixed behavior of "m" key under simon1dos.Jamieson Christian
The "m" key was turning off both music AND MIDI sound effects. It now turns off only the music. svn-id: r9014
2003-07-14Feature [770161] SIMON: Remap instruments to GMJamieson Christian
Apparently Simon 1 (all versions) uses MT32 instruments, so now we map them to GM *unless* the --native-mt32 option was specified. svn-id: r9001
2003-05-25Fixed undefined file read operationJamieson Christian
svn-id: r7971
2003-05-25fixed format stringMax Horn
svn-id: r7931
2003-05-25Added music support for simon1demoJamieson Christian
svn-id: r7927
2003-05-24Fixed hanging notes when switching tracksJamieson Christian
svn-id: r7878
2003-05-24Fixed MIDI channel conflict between music and MIDI sound effects in simon1dos.Jamieson Christian
Also added notes about the GMF header for posterity's sake. svn-id: r7877
2003-05-24Added support for GMF loop specifierJamieson Christian
svn-id: r7874
2003-05-24Fixed problem with hanging notes when switching music tracksJamieson Christian
svn-id: r7873
2003-05-24Added support for simultaneous music and MIDI sound effects to simon1dos.Jamieson Christian
Note that 's' still toggles MIDI sound effects on and off. svn-id: r7872
2003-05-23Fixed hanging notes when toggling SFX mode in Simon 1Jamieson Christian
svn-id: r7865
2003-05-23Fixed problem with Simon music playing even when paused.Jamieson Christian
svn-id: r7864
2003-05-22Reset channel volumes on loadJamieson Christian
svn-id: r7813
2003-05-21More Simon music fixes.Jamieson Christian
svn-id: r7767
2003-05-21Fixed Simon 1 sound effects.Jamieson Christian
More semantic fixes. svn-id: r7765
2003-05-21More Simon music fixesJamieson Christian
svn-id: r7761
2003-05-21Fixed thread problem that causes occassional crashesJamieson Christian
svn-id: r7757
2003-05-20Fixed buffer allocation problem for GMF resources.Jamieson Christian
Thanks for wjp for tracking this one down. svn-id: r7748
2003-05-20Fix for simon2win musicJamieson Christian
svn-id: r7746
2003-05-20Fixed memory overrun problemJamieson Christian
svn-id: r7745
2003-05-20Fixed file scan alignment problemJamieson Christian
svn-id: r7742
2003-05-20oopsMax Horn
svn-id: r7731
2003-05-20init MidiPlayer fullyMax Horn
svn-id: r7730
2003-05-20init some member varsMax Horn
svn-id: r7723
2003-05-19Fixed music looping problem in simon1winJamieson Christian
svn-id: r7672
2003-05-19Fixed Simon 1 music regression.Jamieson Christian
SMF parser now supports malformed Simon pitch bend events. Implemented SMF parser jump method. svn-id: r7669
2003-05-18Implemented new Simon MIDI module, switching from MidiStreamer to ↵Jamieson Christian
MidiParser. Restructuring enables XMIDI support and vc_72 implementation. Various cleanup on MidiParser's and MidiDriver's. svn-id: r7654
2003-03-06updated copyrights headersPaweł Kołodziejski
svn-id: r6726
2003-03-06and more cleanup ....Paweł Kołodziejski
svn-id: r6720
2003-01-03Add olki's patch for sound effects in simon1dosTravis Howell
Plus hack to allow choice between midi music and sound effects via 's' key svn-id: r6326
2003-01-03Remove sion 1 music warningTravis Howell
Change warning about missing vga file to error svn-id: r6323
2002-12-21MidiStreamer no longer derives from MidiDriver.Jamieson Christian
Removed MidiStreamer methods that weren't actually needed. That's one layer of indirection removed from Simon music. svn-id: r6050
2002-12-12Changed handling of malformed pitchbend events.Jamieson Christian
Added related warning output for future reference. svn-id: r5909
2002-12-11ripped out obsolete midi streaming code from backends (this may break ↵Max Horn
Alsa/SEQ/Windows/Morphos compile, I tried my best, but you'll have to clean up after me) svn-id: r5905
2002-11-24Disable/remove some warningsTravis Howell
Enable more debugging svn-id: r5709
2002-11-21Broke MidiStreamer into .h and .cpp components.Jamieson Christian
svn-id: r5682
2002-11-18Added support for volume and pause control to Simon music.Jamieson Christian
Note that MidiStreamer is now used as a streaming wrapper for ALL MidiDriver types, even those that natively support streaming. This is because MidiStreamer supports a hybrid of streamed and non-streamed MIDI, which is necessary to support interactive events. svn-id: r5596
2002-11-17added structures for midi pause/volumeOliver Kiehl
svn-id: r5591
2002-11-13changed warning to errorOliver Kiehl
svn-id: r5539
2002-11-13Change last ugly hack to make it a little betterTravis Howell
svn-id: r5526
2002-11-13An ugly hack to allow music looping in simon1talkieTravis Howell
Most likely better wat to do this... svn-id: r5525
2002-11-13Add midi streaming support from Jamieson630Travis Howell
svn-id: r5522
2002-11-10if possible, always #include headers in the source files, not in other headersMax Horn
svn-id: r5495