aboutsummaryrefslogtreecommitdiff
path: root/backends/midi
AgeCommit message (Collapse)Author
2011-05-08CAMD: Added _isOpen checks to send() and sysEx()eriktorbjorn
At Raziel^'s request. This is the same as the ALSA checks I added earlier today.
2011-05-08ALSA: Warn if events or SysEx messages are received when not open.eriktorbjorn
This should make it easier to spot errors like the one spotted in the Queen engine yesterday. The Windows MIDI driver already seems to do something like this; I don't know about the others.
2011-05-08IRIX: Fix compilationJoost Peters
2011-05-04BACKENDS: Fix copy & paste mistakes in some commentsMax Horn
2011-04-29AMIGAOS: Fix CAMD compiler warningHubert Maier
2011-04-29fix AmigaOS 4 build (thanks to Raziel^)Alyssa Milburn
2011-04-28MACOSX: Fix compilationMax Horn
2011-04-28JANITORIAL: Add in necessary include files to fix compilation in MSVCPaul Gilbert
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
2011-03-29JANITORIAL: Remove/comment unused varsdhewg
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-22AUDIO: Add pure virtual MidiDriver::isOpen() methodMax Horn
This in turn enables modifying MidiDriver_MPU401::close() to allow it to be called on a midi driver that has not yet been opened. The specific issue that triggered me to make these changes was a crash-upon-quit in HUGO, caused by it instantiating a midi driver, then encountering an error (missing hugo.dat) *before* having opened the new midi driver; the general cleanup code then tries to close the (not yet opened) midi driver -> kaboom Also fixed some engines which were leaking MidiDriver instances.
2011-03-10ALSA: Fix formatting.Johannes Schickel
2011-03-10ALSA: Work around a firmware bug in USB-MIDI cables.Johannes Schickel
Thanks to waltervn (and wjp) for their investigation on this and Walter's SCI specific workaround which I more or less just copied here so it will apply for all engines.
2011-03-10ALSA: Strip trailing spaces in device name.Johannes Schickel
This might fix odd problems when storing the device name in the config file, when the name ends with a space by chance.
2011-02-09MIDI: Really fix bug #3153076 (this time also for Timidity)Max Horn
svn-id: r55857
2011-02-09MIDI: Fix bug #3153076 (warnings in SEQ driver)Max Horn
svn-id: r55851
2011-02-09AUDIO: Rename sound/ dir to audio/Max Horn
svn-id: r55850
2011-01-15MIDI: Fixed unnecessary casts of return values to void, reported in bug #3153076Filippos Karapetis
svn-id: r55248
2010-11-29BACKENDS: Fix SVN keyword usage.Johannes Schickel
svn-id: r54584
2010-11-29SDL: Trying to cleanup the FORBIDDEN_SYMBOL situationMax Horn
svn-id: r54575
2010-11-29BACKENDS: Include scummsys.h at top of all .cpp files, *before* any #ifdefsMax Horn
svn-id: r54573
2010-10-30ALL: Add code to help stop people from accidentally using "bad" APIsMax Horn
A new header file common/forbidden.h is included by scummsys.h and it re-#defines numerous symbols like fopen(), fread(), system(), etc. with garbage, in order to provoke compile errors in any code using them. If a .cpp file really *must* use any of these (e.g. because it is a backend file), then these redefinitions can be disabled by #defining FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever this is done, an explanatory comment should be added. Note that this system cannot catch all "bad" usages (notably the Lua code in the sword25 engine), as it can only work if scummsys.h is included. svn-id: r53961
2010-10-13SOUND: Allow TiMidity support to be disabled via configure.Johannes Schickel
svn-id: r53395
2010-09-18JANITORIAL: Removed most punctuation at end of warning() and error()Torbjörn Andersson
Our warning() and error() functions always add an exclamation mark to the end of the message anyway. svn-id: r52791
2010-07-27ALSA: Be more intelligent when picking MIDI portTorbjörn Andersson
Often, a client has more than one available port. Pick the first one that isn't already in use. For instance, on my computer client 17 is the "Emu10k1 WaveTable", and it has four available ports. If, say, aplaymidi is already playing on port 17:0, ScummVM will use port 17:1 instead. Otherwise the two programs will mess up each others instruments and controller settings. Of course, in reality I doubt that anyone will run two different MIDI playing applications at once. svn-id: r51380
2010-07-27ALSA: Tweak capability and type flags for the MIDI portTorbjörn Andersson
This keeps ScummVM's own port from being included in the list of available MIDI devices. svn-id: r51378
2010-07-27ALSA: Simplify device querying code.Johannes Schickel
Thanks to eriktorbjorn for some quick testing. svn-id: r51366
2010-07-20General: Fixed building the SEQ MIDI driverTorbjörn Andersson
An #include was missing, causing the driver to never be built. Also fixed what looked like a cut-and-paste error in generating the features string. svn-id: r51056
2010-07-20BUILD: Unify adding -DUNIX to DEFINES; complete SEQ MIDI detectionMax Horn
* Added a yes/no variable _unix to configure, which controls when -DUNIX is added to DEFINES * Enable SEQ MIDI via _seq_midi by default on UNIX type systems, except for those which override that. * Switch SEQ MIDI code to check #define USE_SEQ_MIDI (alternatively, we could compile it only conditionally...) svn-id: r51055
2010-07-20MIDI: Build and use ALSA driver if and only if USE_ALSA is definedMax Horn
svn-id: r51053
2010-07-19ALSA: Get ALSA port settings from the new device config settings.Torbjörn Andersson
This is also an attempt to make the transition from the old settings to the new ones a little less rough, by trying to put something sensible into the first device, which is what's used by default. Currently it prefers 17:x and 65:x since they're the old defaults, followed by 128:x since that's probably TiMidity. The old SCUMMVM_PORT environment variable still overrides any config settings. I haven't made up my mind whether or not that's a good idea, but at least it prints a warning message. TODO: The old 'alsa_port' setting is not handled. It should probably be used to set sensible defaults for the new settings, but I'm not sure where this should be done. TODO: The documentation will need to be updated, once everything is working the way it should. svn-id: r51019
2010-07-19SUBSYSTEM: ALSA music driverTorbjörn Andersson
We should probably open the sequencer the exact same way, both when opening the driver and when asking it for available MIDI devices. Not that I've been able to figure out the difference between "hw" and "default" from the fine ALSA manual... And I'm not sure we really need to try and keep compatibility with ancient (pre-0.9.0?) ALSA any longer... svn-id: r51014
2010-07-17Remove PalmOS portMax Horn
svn-id: r50964
2010-07-14If the ALSA driver hasn't been opened, closing it should do nothing. This keepsTorbjörn Andersson
ScummVM from crashing if, for instance, someone accidentally closes the driver twice. svn-id: r50870
2010-07-05Skip /dev/sequencer MIDI on Android.Angus Lees
svn-id: r50664
2010-06-26Define WIN32_LEAN_AND_MEAN before including windows.h.Johannes Schickel
This will cause our code to include less functionality, but might on the other hand fasten up the compilation. svn-id: r50346
2010-06-26GUI: Add and improve some messages to translateJordi Vilalta Prat
svn-id: r50324
2010-06-21Patch #1956501: "GUI/LAUNCHER: Midi device selection"Max Horn
svn-id: r50128
2010-05-05Replace various strncpy usages by strlcpy.Johannes Schickel
svn-id: r48955
2010-03-18Fix warningsMax Horn
svn-id: r48277
2010-01-22Replace header by a standard headerArnaud Boutonné
svn-id: r47449
2010-01-03Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is nullTorbjörn Andersson
before freeing it, which isn't necessary. svn-id: r46941
2009-12-09Remove the Audio::Mixer parameter from the midi/music pluginsMax Horn
svn-id: r46315
2009-09-27Removed Mac OS X QuickTime MIDI backend. It breaks on OS X 10.6, and it's ↵Max Horn
not as good as the CoreAudio backend anyway svn-id: r44428
2009-09-27Fix CoreAudio MIDI backend on Mac OS X 10.6Max Horn
svn-id: r44427
2009-09-06Minor constness fixesBertrand Augereau
svn-id: r43974
2009-07-04Add GCC_PRINTF parameter.Johannes Schickel
svn-id: r42104
2009-06-28Silenced the reamining warnings reported in patch #2684986 (gcc warnings ↵Max Horn
with -DFORTIFY_SOURCE=2 -fstack-protector) svn-id: r41930
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-30Fixed compilation errorFilippos Karapetis
svn-id: r41037