192 Commits

Author SHA1 Message Date
Johannes Schickel
bee3321ec4 This hopefully fixes building on win64.
svn-id: r48245
2010-03-12 13:10:37 +00:00
Torbjörn Andersson
d9c4ee9376 Initialise 'releaseAdd' to avoid a Valgrind warning in Write20() when the
emulator is initialised.

svn-id: r48214
2010-03-09 05:03:38 +00:00
Johannes Schickel
b8901a4741 Add a slight comment when the DBOPL sources where synched with DOSBox.
svn-id: r48182
2010-03-08 00:34:53 +00:00
Johannes Schickel
e941780d39 Use memset instead of a custom loop for zeroing the sample buffer.
svn-id: r48181
2010-03-08 00:34:29 +00:00
Johannes Schickel
f67f7d36f1 Cleanup.
svn-id: r48180
2010-03-08 00:34:01 +00:00
Johannes Schickel
f7b1faedc2 Switch to the other DOSBox OPL emulator as suggested by the DOSBox developers.
svn-id: r48179
2010-03-08 00:33:36 +00:00
Neil Millstone
277b3078bc SID: Adding DISABLE_SID option, as SID player embiggens binary by a large amount. This is a problem for the DS port.
svn-id: r48137
2010-02-26 17:42:40 +00:00
Johannes Schickel
98fb67ed20 - Remove "(experimental)" mark from DOSBox OPL emulator description in GUI
- Merge in some small OPL emulator changes from DOSBox's trunk

svn-id: r47546
2010-01-25 02:48:35 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Johannes Schickel
69071078b3 Replace some more Adlib uses by AdLib.
svn-id: r47530
2010-01-25 00:13:32 +00:00
Johannes Schickel
0d995c5920 Rename all "Adlib" uses to "AdLib" to match the real name of the sound card / company.
Check this for reference:
http://en.wikipedia.org/wiki/Ad_Lib,_Inc.
http://www.crossfire-designs.de/images/articles/soundcards/adlib.jpg (note the upper left of the card)

This commit does not touch "adlib" and "ADLIB" uses!

Also it does not update all the SCUMM detection entries, which still use "Adlib".

svn-id: r47279
2010-01-12 21:07:56 +00:00
Willem Jan Palenstijn
229c53d485 Use DisposeAfterUse::Flag
svn-id: r47187
2010-01-08 23:05:00 +00:00
Max Horn
f720d99b0a Switch Mixer::playInputStream to use DisposeAfterUse::Flag
svn-id: r47182
2010-01-08 22:09:43 +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
Fabio Battaglia
a108df30a7 Add Nintendo 64 port to trunk.
svn-id: r46773
2009-12-30 21:11:38 +00:00
Johannes Schickel
5cd176052c Typo...
svn-id: r46319
2009-12-09 20:11:02 +00:00
Johannes Schickel
27e03012d5 This is hopefully fixing compilation of the fluidsynth code.
svn-id: r46318
2009-12-09 20:08:57 +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
ef5d0226c1 Fix warnings.
svn-id: r46145
2009-11-26 00:43:43 +00:00
Travis Howell
8783b0f2f7 Add patch #2839048 - MM C64 sound/music player, with minor changes.
svn-id: r46143
2009-11-26 00:31:19 +00:00
Max Horn
f242266f6d Change a couple places from 'end of namespace' to 'End of namespace', for consistency
svn-id: r44634
2009-10-04 21:26:33 +00:00
Max Horn
8ba75fc522 Fix code formatting (esp. 'if(' -> 'if (' etc., but also indention and other things)
svn-id: r44495
2009-09-30 16:16:53 +00:00
Johannes Schickel
c50940bbf4 Got rid of Common::File::addDefaultDirectory, instead implemented the solution proposed in "Case agnostic handling for directories (and files)" on -devel.
svn-id: r44266
2009-09-23 00:15:00 +00:00
Johannes Schickel
1b68bf76ac Wording.
svn-id: r44086
2009-09-14 19:30:46 +00:00
Johannes Schickel
160f9e7705 Use struct packing for AdLib instruments like the SCUMM engine does. (And a comment about this change, which might be rather paranoia than having a real effect)
svn-id: r44085
2009-09-14 18:41:21 +00:00
Johannes Schickel
e779747ca4 Fix typo, which made our "floorf" macro use "floorf" instead of "floor" on systems without "floorf".
svn-id: r42904
2009-07-29 20:03:46 +00:00
Max Horn
a6b57dc3a9 - Added GCC_PRINTF attribute to several funcs where it makes sense
- change some constants from double to float, to avoid "loss of precision due to implicit conversion" warnings
- removed duplicate prototypes for some funcs
- fixed some "increases required alignment of target type" warnings

svn-id: r42009
2009-07-01 20:51:04 +00:00
Torbjörn Andersson
0999534749 The error() and warning() functions add ! and newline automatically. (I didn't
look at debug() and debugC(), since I'm really bored with this now. :-)

svn-id: r41061
2009-05-31 10:02:16 +00:00
Johannes Schickel
0ba9e14ec9 Double volume of DOSBox' OPL emulator, like DOSBox does too.
svn-id: r41014
2009-05-29 17:59:07 +00:00
Johannes Schickel
33de8c9a5f Add include guard.
svn-id: r40932
2009-05-27 00:34:31 +00:00
Johannes Schickel
b3c6751b9b Strip trailing whitespaces in the whole code base.
svn-id: r40867
2009-05-24 15:17:42 +00:00
Marcus Comstedt
64e75b91b7 Fixed a warning: printf("%f") should take a double, not a float.
svn-id: r40785
2009-05-22 17:15:39 +00:00
Max Horn
65b5d31814 COMMON: Removed Stream::ioFailed() and clearIOFailed(), as they are deprecated; however, retained ioFailed in SeekableReadStream and File for now (so for now this mainly affects WriteStream subclasses)
svn-id: r40725
2009-05-19 11:42:14 +00:00
Johannes Schickel
a866e90342 Make g++ 4.4 happy (warning about out of bounds access).
svn-id: r40526
2009-05-13 17:29:48 +00:00
Johannes Schickel
4f0768b909 - Add support for selecting the OPL emulator being used (config entry: "opl_driver")
- Make MAME FM OPL the default emulator again
- Add GUI support for selecting the active OPL emulator
- Update themes

svn-id: r40496
2009-05-12 18:42:44 +00:00
Johannes Schickel
b33bf76c70 For the time being rename opl.h to opl_inc.h and opl.cpp to opl_impl.h, so MSVC does not try to compile the former opl.cpp. (Needs cleanup in the future anyway...)
svn-id: r40365
2009-05-06 20:19:47 +00:00
Johannes Schickel
262363f2b3 Another attempt at fixing MSVC compiliation. (someone test this please ;-)
svn-id: r40364
2009-05-06 20:05:58 +00:00
Johannes Schickel
47e426f271 Don't include headers inside namespace scopes. This should fix compilation on NDS at least.
svn-id: r40360
2009-05-06 13:57:05 +00:00
Paul Gilbert
c02aad90b2 Added a reference to scummsys.h to fix compilation errors
svn-id: r40351
2009-05-06 10:28:07 +00:00
Johannes Schickel
c35d6db60c Fix feedback/algorithm register write bugs in Dual OPL2 mode.
svn-id: r40342
2009-05-06 00:40:37 +00:00
Johannes Schickel
25ca710eae Really fix Dual OPL2 initialization.
svn-id: r40341
2009-05-05 23:40:54 +00:00
Johannes Schickel
6f840550b9 Dual OPL2 initialization bugfix.
svn-id: r40339
2009-05-05 22:34:04 +00:00
Johannes Schickel
625f41c135 Cleanup:
- Rename OPL_DOSBox to OPL, since it's inside a seperate namespace anyway
- Reanme MAME_OPL to OPL, since it's inside a seperate namespace anyway

svn-id: r40338
2009-05-05 22:18:26 +00:00
Johannes Schickel
08581ed698 AdLib emulator changes part2:
- Add new OPL emulator API (and legacy access API) in sound/fmopl.h
- Add DOSBox OPL emulator.
- Update MAME OPL emulator for the API changes.

svn-id: r40334
2009-05-05 21:47:12 +00:00
Johannes Schickel
d9e0499a36 AdLib emulator changes part1 (breaks compilation :-/):
- Add new directory sound/softsynth/opl
- Move sound/fmopl to sound/softsynth/opl/mame

svn-id: r40333
2009-05-05 21:40:50 +00:00
Johannes Schickel
e7506eb99e Rename adlib_read to adlib_get_reg_value, since it return the (cached) register value, which can not be achieved by read AdLib read.
svn-id: r40084
2009-04-22 20:51:33 +00:00
Johannes Schickel
0638a8a27a Renamed some variables and parameters to match their real use.
svn-id: r40083
2009-04-22 20:18:12 +00:00
Andre Heider
c72cba069b Use pow() instead of powf() when compiling with MinGW32 to work around a libstdc++ cross-compile bug, see #2673362
svn-id: r39309
2009-03-10 19:32:38 +00:00
Johannes Schickel
5417f6bacb - Replace OSystem::clearScreen with OSystem::fillScreen as discussed on -devel.
- Update BaseBackend and DC port to properly implement OSystem::fillScreen (now only PalmOS has to be updated).
- Update all client code which relied on OSystem::clearScreen so far.

svn-id: r38304
2009-02-15 21:20:21 +00:00
Max Horn
341bc64aaf do not include common/debug.h from common/util.h
svn-id: r36143
2009-01-30 05:25:17 +00:00