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
Johannes Schickel
17fe3ce29e
Oops enabled HACK to prevent multiple OPL instances again.
...
svn-id: r42849
2009-07-27 18:19:16 +00:00
Max Horn
baabc623f6
Got rid of two more ioFailed uses
...
svn-id: r42501
2009-07-15 10:04:50 +00:00
Max Horn
6b98c4c4e7
Got rid of some more ioFailed uses (also fixed a potential leak in graphics/font.cpp, and handle eos correctly in the FLAC code)
...
svn-id: r42488
2009-07-14 18:24:20 +00:00
Filippos Karapetis
b1bd180408
Added proper safeguards for shorten.*, thereby fixing commit 42259
...
svn-id: r42290
2009-07-09 15:17:45 +00:00
Filippos Karapetis
8a783bdd76
Renamed sound/iff.* to sound/iff_sound.* to fix an issue with the upcoming changes to the MSVC project files (sound/iff.* produces iff.obj, which clashes with iff.obj from graphics/iff.*)
...
svn-id: r42287
2009-07-09 13:17:46 +00:00
Filippos Karapetis
90422f6bd3
Added guards to only include the Shorten audio code when the SAGA2 code in the SAGA engine is enabled
...
svn-id: r42259
2009-07-08 07:28:13 +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
Nicola Mettifogo
36828287ad
* Moved the updated IFF code from Parallaction to common/
...
* Updated Parallaction and SAGA to use the new decoder infrastructure.
svn-id: r41465
2009-06-12 08:51:05 +00:00
Nicola Mettifogo
df1534ffd0
* Replaced the A8SVXDecoder class with a function to return an AudioStream in trunk/sound/.
...
* Refactored sound code in Parallaction to use the new Audio::make8SVXStream.
svn-id: r41460
2009-06-12 07:18:01 +00:00
Eugene Sandulenko
cda17beff5
Patch #1365914 : "SCUMM: CMS support." Disabled by default. Still plenty to do.
...
svn-id: r41282
2009-06-06 18:21:49 +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
Max Horn
e23e1ffcb7
Added Audio::Timestamp::addMsecs method
...
svn-id: r40957
2009-05-28 10:29:25 +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
Johannes Schickel
dfb6ca6bae
Add support for "getTotalPlayTime" in LinearMemoryStream again.
...
svn-id: r40840
2009-05-23 23:49:47 +00:00
Sven Hesse
be6fd784b4
Allow for different MOD signatures
...
svn-id: r40827
2009-05-23 20:38:08 +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
90b4afd41b
Add some simple implementation for type 8 data blocks:
...
- Fix sound effect in LoL demo
svn-id: r40708
2009-05-18 22:11:56 +00:00
Travis Howell
e59e65aa99
Fix crash when any movie is played in the Macintosh version of The Feebles Files, a regression caused by revision 36085.
...
svn-id: r40679
2009-05-18 10:40:22 +00:00
Johannes Schickel
297a9c6c5f
Fix spelling of AdLib (it's AdLib not Adlib).
...
svn-id: r40533
2009-05-13 21:02:50 +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
72686a5a9e
Make 'create' return an OPL2 by default.
...
svn-id: r40503
2009-05-12 19:24:04 +00:00
Johannes Schickel
4190e256bf
Cleanup.
...
svn-id: r40502
2009-05-12 19:03:54 +00:00
Johannes Schickel
4c156d3c78
Fix OPL emulator IDs.
...
svn-id: r40498
2009-05-12 18:53:44 +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
Max Horn
5dc234a4e2
Patch #2758080 : GSOC09: XMIDI parser switch cases
...
svn-id: r40361
2009-05-06 14:22:13 +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
5cc44292a2
- Remove default parameter from OPL::create
...
- Add some note that no one should use the legacy API for new code
svn-id: r40337
2009-05-05 22:14:34 +00:00
Johannes Schickel
16bd319684
At request by DrMcCoy enable DOSBox OPL2 by default whenever DISABLE_DOSBOX_OPL isn't defined.
...
svn-id: r40335
2009-05-05 22:06:54 +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
Fabio Battaglia
9c5cf77287
vag: delete stream after use
...
svn-id: r39767
2009-03-30 21:04:19 +00:00
Fabio Battaglia
0c1bae6b15
Rate selection is now possible for VAG audio decoder, also decoder doesn't die with incomplete/corrupted files
...
svn-id: r39764
2009-03-30 13:42:28 +00:00
Willem Jan Palenstijn
07d3ae07ac
Fix regression from r39702: look up music_driver in config
...
svn-id: r39707
2009-03-27 13:49:11 +00:00
Max Horn
e5e1615280
MidiDriver cleanup: findMusicDriver now returns a pointer (makes it possible to distinguish 'no match found' from other results); updated parseMusicDriver accordingly; some methods now return MidiDriverType instead of int
...
svn-id: r39702
2009-03-26 13:52:43 +00:00
Max Horn
fb364ee281
Changed doxygen comments in sound/midiparser.h to match with our usual formatting conventions
...
svn-id: r39700
2009-03-26 13:11:11 +00:00
Matthew Hoops
1817dd9bc5
Do not use TO_LE_16 for the IMA ADPCM decoder as it breaks sound on BE systems.
...
svn-id: r39465
2009-03-17 02:35:43 +00:00
Fabio Battaglia
647276b885
Moving sword1/vag.* into sound/, to be used by Broken Sword 2 PSX
...
svn-id: r39416
2009-03-15 10:25:22 +00:00