Johannes Schickel
121687d2ed
BACKENDS: Make GPL headers consistent in themselves.
2014-02-18 02:39:32 +01:00
Willem Jan Palenstijn
34c36d8f8f
AUDIO: Remove useless check
2013-04-23 21:25:03 +02:00
Matthew Hoops
23cc4e89f3
BACKENDS: Remove excess space from warnings
2012-11-24 18:19:05 -05:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Ori Avtalion
9414d7a6e2
JANITORIAL: Reduce header dependencies in shared code
...
Some backends may break as I only compiled SDL
2011-04-28 15:08:58 +03:00
Max Horn
8982fff1b7
AUDIO: Add pure virtual MidiDriver::isOpen() method
...
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-22 23:51:47 +01:00
Max Horn
77fe90d95e
MIDI: Really fix bug #3153076 (this time also for Timidity)
...
svn-id: r55857
2011-02-09 11:03:36 +00:00
Max Horn
ab78737abd
MIDI: Fix bug #3153076 (warnings in SEQ driver)
...
svn-id: r55851
2011-02-09 01:11:58 +00:00
Max Horn
42ab839dd6
AUDIO: Rename sound/ dir to audio/
...
svn-id: r55850
2011-02-09 01:09:01 +00:00
Filippos Karapetis
cc9f2944ed
MIDI: Fixed unnecessary casts of return values to void, reported in bug #3153076
...
svn-id: r55248
2011-01-15 09:43:02 +00:00
Max Horn
44393b2dc8
ALL: Add code to help stop people from accidentally using "bad" APIs
...
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-30 21:27:42 +00:00
Torbjörn Andersson
5b3f31feec
General: Fixed building the SEQ MIDI driver
...
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-20 08:56:53 +00:00
Max Horn
37aa8a7499
BUILD: Unify adding -DUNIX to DEFINES; complete SEQ MIDI detection
...
* 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-20 08:25:13 +00:00
Angus Lees
bb300ec671
Skip /dev/sequencer MIDI on Android.
...
svn-id: r50664
2010-07-05 00:09:41 +00:00
Max Horn
bbad3f333a
Patch #1956501 : "GUI/LAUNCHER: Midi device selection"
...
svn-id: r50128
2010-06-21 21:36:36 +00:00
Max Horn
84f3c98fad
Remove the Audio::Mixer parameter from the midi/music plugins
...
svn-id: r46315
2009-12-09 18:05:20 +00:00
Max Horn
531e7a8c78
Silenced the reamining warnings reported in patch #2684986 (gcc warnings with -DFORTIFY_SOURCE=2 -fstack-protector)
...
svn-id: r41930
2009-06-28 19:56:58 +00:00
Johannes Schickel
b12ebf7218
Fixed sysEx buffer sizes.
...
svn-id: r35192
2008-11-30 13:03:43 +00:00
Johannes Schickel
2ebe04ac3e
- Extended MidiDriver::sysEx to allow 264 byte sysEx messages
...
- Updated all drivers to allow 264+2 byte sysEx messages
- Implemented sysEx processing for MT-32 for Kyra1 and HoF. MT-32 should now be working properly.
svn-id: r35180
2008-11-30 04:42:30 +00:00
Max Horn
f32be87633
Turned enum PluginError into Common::Error, which in the future is to be used in more places. Help with this is highly welcome
...
svn-id: r34906
2008-11-05 17:24:56 +00:00
Max Horn
31320430de
Partial commit of patch #2012839 : Atari Patch for adding Native MIDI and Fix Compile
...
svn-id: r34194
2008-08-27 18:52:21 +00:00
Jordi Vilalta Prat
8eac356946
Added initial interface to list music devices and their types
...
svn-id: r32695
2008-06-13 16:04:43 +00:00
Jordi Vilalta Prat
177993b145
Renamed MIDI plugins to Music plugins
...
svn-id: r32693
2008-06-13 14:30:47 +00:00
Jordi Vilalta Prat
eb6c809d2b
- Added more information (ID and capabilities) to the MIDI drivers
...
- Added the MidiPlugin interface to the remaining MIDI drivers
- Added an initial MidiManager to handle the MIDI plugins (just static plugins by now)
svn-id: r32117
2008-05-14 14:56:29 +00:00
Jordi Vilalta Prat
d942fd42bb
Moved midiplugin.h to sound/ since it will be used for more than just the native MIDI drivers.
...
svn-id: r32097
2008-05-14 05:47:29 +00:00
Jordi Vilalta Prat
d696ed6ea2
Added the MidiPlugin interface (first step towards the MIDI plugins)
...
svn-id: r31993
2008-05-11 02:10:05 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Max Horn
218e132e37
Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
...
svn-id: r27024
2007-05-30 21:56:52 +00:00
Max Horn
eeda548204
Explicitly #include fcntl.h and unistd.h for the open/write/close syscalls
...
svn-id: r26026
2007-03-08 20:42:40 +00:00
Max Horn
8778f121e2
Replaced uses of fprintf() with warning() or error()
...
svn-id: r26022
2007-03-08 17:23:19 +00:00
Max Horn
4db72c8762
Unified how we deal with (and how we generate) MIDI sysex messages -- in particular, we now always do so w/o framing the message (documented this with a Doxygen comment in the MidiDriver class)
...
svn-id: r25630
2007-02-16 13:30:41 +00:00
Eugene Sandulenko
233c2a42f9
WIP of maemo port
...
svn-id: r21055
2006-03-04 01:32:04 +00:00
Torbjörn Andersson
278d0de012
Fixed compilation.
...
svn-id: r20953
2006-02-27 07:18:49 +00:00
Jamieson Christian
2469e00248
SysEx data now passed around with const pointers. Permits simplification of 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-27 01:59:07 +00:00
Max Horn
cbb2ca005c
Change CVS keywords to SVN keywords
...
svn-id: r20535
2006-02-11 12:47:47 +00:00
Eugene Sandulenko
ea42bad781
Update copyright notice
...
svn-id: r20088
2006-01-18 17:39:49 +00:00
Jonathan Gray
25794c23e2
Default to /dev/sequencer before /dev/null if no MIDI device
...
is specified.
svn-id: r19480
2005-11-06 01:23:40 +00:00
Eugene Sandulenko
b36677af71
Update FSF address. Eek. Actually that took place on May 1, 2005
...
svn-id: r19142
2005-10-18 01:30:26 +00:00
Max Horn
8b1d7b9166
When including files from common/, explicitly use the common/ prefix
...
svn-id: r18444
2005-06-24 15:23:51 +00:00
Max Horn
47280d9433
Updated copyright
...
svn-id: r16398
2005-01-01 16:09:25 +00:00
Max Horn
033ff78ae9
updated copyright notice
...
svn-id: r12176
2004-01-06 12:45:34 +00:00
Max Horn
925ddb1b86
moved declaration of error/warning/debug from engine.h to util.h
...
svn-id: r10151
2003-09-10 12:23:42 +00:00
Jamieson Christian
d2c952b315
Fixed race condition in MPU401 shutdown
...
svn-id: r8432
2003-06-11 05:54:46 +00:00
Jamieson Christian
e2b2f8cc64
Fixed stupid SysEx error
...
svn-id: r8211
2003-06-01 02:25:07 +00:00
Jamieson Christian
f047955b0d
Restored SEQ_MIDIPUTC SysEx approach
...
svn-id: r8208
2003-06-01 01:45:08 +00:00
Jamieson Christian
c5ecbf65cb
Another slight tweak to the EV_SYSEX code
...
svn-id: r8201
2003-06-01 00:14:04 +00:00
Jamieson Christian
3323aa4212
EV_SYSEX definition
...
svn-id: r8198
2003-05-31 23:27:19 +00:00
Jamieson Christian
5cfb556d67
EV_SYSEX based SysEx for -eseq
...
svn-id: r8197
2003-05-31 23:14:36 +00:00
Jamieson Christian
ef198afd7c
Possible fix for -eseq SysEx
...
svn-id: r8196
2003-05-31 22:16:25 +00:00
Jamieson Christian
66cbaa1df7
Moved SEQ driver to its own file
...
svn-id: r7605
2003-05-17 14:26:58 +00:00