Johannes Schickel
1f217e3834
WIN32: Fix invalid array accesses when MIDI device listing fails.
2016-03-01 01:14:17 +01:00
Johannes Schickel
449ea100d9
WIN32: Make GPL headers consistent in themselves.
2014-02-18 02:39:40 +01:00
athrxx
535a55e47a
AUDIO: (Windows) fix issue with non-unique MIDI device names
...
This should fix the issue mentioned here: http://forums.scummvm.org/viewtopic.php?t=11255
Apparently Windows doesn't generate unique names for MIDI devices of the exact same type.
I do not know whether this could be a problem on other backends, too.
2012-02-25 14:15:49 +01:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Paul Gilbert
c6fa23a3d1
JANITORIAL: Add in necessary include files to fix compilation in MSVC
2011-04-28 22:32:12 +10: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
42ab839dd6
AUDIO: Rename sound/ dir to audio/
...
svn-id: r55850
2011-02-09 01:09:01 +00:00
Max Horn
4bed2b3ff5
SDL: Trying to cleanup the FORBIDDEN_SYMBOL situation
...
svn-id: r54575
2010-11-29 16:35:29 +00:00
Max Horn
df05ed1a46
BACKENDS: Include scummsys.h at top of all .cpp files, *before* any #ifdefs
...
svn-id: r54573
2010-11-29 16:18:43 +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
c91a07229a
JANITORIAL: Removed most punctuation at end of warning() and error()
...
Our warning() and error() functions always add an exclamation mark
to the end of the message anyway.
svn-id: r52791
2010-09-18 10:55:16 +00:00
Johannes Schickel
09b4f7cbed
Define WIN32_LEAN_AND_MEAN before including windows.h.
...
This will cause our code to include less functionality, but might on the other hand fasten up the compilation.
svn-id: r50346
2010-06-26 21:55:52 +00:00
Jordi Vilalta Prat
063cef0c28
GUI: Add and improve some messages to translate
...
svn-id: r50324
2010-06-26 15:48:03 +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
Johannes Schickel
931c8c27e2
Fix parameter in Windows MIDI backend (this is according to API documentation from M$).
...
svn-id: r39556
2009-03-20 00:20:29 +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
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
Filippos Karapetis
d6fafb4ad1
Fixed compilation under windows
...
svn-id: r32010
2008-05-11 10:52:58 +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
Nicola Mettifogo
1e985051a9
reduced dependency from windows-specific header files
...
svn-id: r26034
2007-03-09 00:13:07 +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
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
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
bf507bfa11
cleanup
...
svn-id: r18484
2005-07-02 13:01:59 +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
Jerome Fisher
e4f600ee48
- Minor improvement to failure handling.
...
svn-id: r15777
2004-11-10 10:50:47 +00:00
Max Horn
033ff78ae9
updated copyright notice
...
svn-id: r12176
2004-01-06 12:45:34 +00:00
Paweł Kołodziejski
13c7acee9d
cleanup whitespaces
...
svn-id: r11220
2003-11-08 22:57:42 +00:00
Jamieson Christian
a30eb131bb
Fix for Bug [810564] ALL: missing instruments with native MT-32
...
As defined in Patch [811623] MT-32 patch for Bug 810564
Added a channel mask to MPU-401 devices so that --native-mt32
may force the device to use only the subset of MIDI channels
actually supported by the MT-32. Also added a best-guess
interpretation of iMuse Part priority in the SysEx 0x00 msg,
since part priorities become more of an issue when the
channel count is cramped.
svn-id: r10409
2003-09-25 22:32:05 +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
3103dfa1f3
Fixed SysEx errors
...
svn-id: r8212
2003-06-01 02:37:37 +00:00
Jamieson Christian
c81b58d38e
Implemented new Simon MIDI module, switching from MidiStreamer to MidiParser. Restructuring enables XMIDI support and vc_72 implementation. Various cleanup on MidiParser's and MidiDriver's.
...
svn-id: r7654
2003-05-18 23:55:53 +00:00
Jamieson Christian
7e7719fd16
Possible fix for Windows SysEx transmissions
...
svn-id: r7525
2003-05-15 14:16:12 +00:00
Paweł Kołodziejski
aa3766018f
updated copyrights headers
...
svn-id: r6726
2003-03-06 21:46:56 +00:00
Paweł Kołodziejski
a8c3057875
and more cleanup ....
...
svn-id: r6719
2003-03-06 18:30:44 +00:00
Jamieson Christian
b942f42670
First-revision SysEx support for -ewindows.
...
svn-id: r6381
2003-01-10 14:40:22 +00:00
Jamieson Christian
8f419dcaa8
Fixed VC++ errors in Windows driver after streaming capability was removed.
...
svn-id: r5908
2002-12-12 01:35:57 +00:00
Max Horn
bf62494fd5
ripped out obsolete midi streaming code from backends (this may break Alsa/SEQ/Windows/Morphos compile, I tried my best, but you'll have to clean up after me)
...
svn-id: r5905
2002-12-11 16:09:58 +00:00
Max Horn
0602c7ed49
fixed legal header
...
svn-id: r5902
2002-12-11 02:38:38 +00:00