Ferdinand Thiessen
6075f5d24d
BACKENDS: timidity: Get rid of gethostbyname, use getaddrinfo.
2016-10-25 13:17:55 +02:00
Torbjörn Andersson
93b2a2e5c6
TIMIDITY: Fix resource leak (CID 1003919)
2015-11-30 22:21:35 +01:00
Johannes Schickel
121687d2ed
BACKENDS: Make GPL headers consistent in themselves.
2014-02-18 02:39:32 +01:00
Dmitry Smirnov
61b4981b12
BACKENDS: fix FTBFS on GNU Hurd by replacing MAXHOSTNAMELEN with NI_MAXHOST
...
Bug-ScummVM: https://sourceforge.net/tracker/?func=detail&atid=418820&aid=3614268&group_id=37116
See more in similar http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=387665
2013-06-18 02:52:35 +10:00
Johannes Schickel
223794fb38
ALL: Make use of defined() for the preprocessor consistent.
...
This does not change the use of defined for some NDS source files, since they
seem to be (based on?) third party code.
2012-03-17 22:02:44 +01:00
Max Horn
fe79ce5038
AUDIO: Add endian FIXME to timdity code
2011-12-12 16:27:41 +01:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Max Horn
28403e4543
BACKENDS: Fix copy & paste mistakes in some comments
2011-05-04 16:18:18 +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
dhewg
d83a83ef50
JANITORIAL: Remove/comment unused vars
...
Found by GCC 4.6's -Wunused-but-set-variable
2011-03-29 21:57:56 +02: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
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
Johannes Schickel
3b81a9489e
SOUND: Allow TiMidity support to be disabled via configure.
...
svn-id: r53395
2010-10-13 00:48:40 +00:00
Max Horn
bbad3f333a
Patch #1956501 : "GUI/LAUNCHER: Midi device selection"
...
svn-id: r50128
2010-06-21 21:36:36 +00:00
Johannes Schickel
caf31ee5af
Replace various strncpy usages by strlcpy.
...
svn-id: r48955
2010-05-05 17:54:12 +00:00
Torbjörn Andersson
72eb9ec9ea
Fixed a bunch of cppcheck warnings. Mostly about checking if a pointer is null
...
before freeing it, which isn't necessary.
svn-id: r46941
2010-01-03 19:37:43 +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
1431944294
Add GCC_PRINTF parameter.
...
svn-id: r42104
2009-07-04 18:54:06 +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
b9ac179b2e
Silence another g++ 4.4 warning.
...
svn-id: r40527
2009-05-13 17:33:58 +00:00
Max Horn
eb5ec2369f
#define usleep on BeOS
...
svn-id: r36201
2009-02-02 18:33:38 +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
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
Jordi Vilalta Prat
66e9d4f5e8
Removed trailing spaces.
...
svn-id: r30664
2008-01-27 19:47:41 +00:00
Max Horn
2222b947ba
WORKAROUND bug #1870304 : Solaris does not provide INADDR_NONE
...
svn-id: r30467
2008-01-13 12:54:13 +00:00
Torbjörn Andersson
ceffb6d2be
Changed "if( ... )" to "if ( ... )" and "while( ... )" to "while ( ... )", and
...
removed an unnecessary \n.
svn-id: r29379
2007-11-02 16:55:09 +00:00
Max Horn
8eb73f2694
Patch #1815526 : Add TiMidity++ MIDI server support
...
svn-id: r29377
2007-11-02 16:01:52 +00:00