Sven Hesse
2c81602454
GOB: Don't completely reset the OPL in AdLib::initOPL()
...
It shouldn't be necessary anymore, since initOPL() cleans everything.
If, however, suddenly a piece of music sounds weird in a Gob game,
this is the place to look for.
This fixes a race condition between OPL::reset() and the callback
timer.
2016-02-28 21:04:23 +01:00
Max Horn
91e925d8ce
GOB: Get rid of unused Audio::mixer references
...
Also remove the unused AdLib::_rate member variable.
2015-07-19 17:06:18 +02:00
Matthew Hoops
bed9da8b9d
AUDIO: Remove all AudioStream access to OPL
2015-07-07 20:19:47 -04:00
Walter van Niftrik
e31da911c9
GOB: Implement custom AdLib volume control
2015-07-07 20:19:45 -04:00
Matthew Hoops
73e8ac2a9b
GOB: Use the built-in OPL timer
2015-07-07 20:19:45 -04:00
Matthew Hoops
2e8f9dcec9
AUDIO: Remove the sample rate configuration from the OPL code
2015-07-07 20:19:42 -04:00
Johannes Schickel
ea21bc939a
GOB: Make GPL headers consistent in themselves.
2014-02-18 02:39:34 +01:00
Sven Hesse
bbe4372f5b
GOB: Add another sanity check
2013-04-15 18:42:46 +02:00
Sven Hesse
f538b76586
GOB: Don't recalculate the AdLib frequencies table on every player reset
2012-06-11 15:10:59 +02:00
Sven Hesse
03ef6689c0
GOB: Rewrite the AdLib players
...
This is a complete rewrite of the AdLib players for ADL and MDY/TBR
files in the Gob engine.
Major changes
1) The AdLib base class is now completely separated from all file
format code and can theoretically be used by any OPL2-based
format (within reason)
2) The new code is far better documented and more readable
3) The MDY player now actually works. The MDY/TBR format is
in reality the MUS/SND format created by AdLib as a simpler
alternative to the ROL format
4) Since the MAME emulator is quite buggy and leads to noticable
wrong percussion in the Gobliins 2 title music, the new AdLib
player will try to create a DOSBox OPL. If it's not compiled in,
or if the user configured opl_driver to "mame", it will print
out appropriate warnings.
2012-06-11 05:18:06 +02: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
2d1c8a3533
ALL: Fix whitespaces / indention
...
svn-id: r55818
2011-02-07 23:01:06 +00:00
Sven Hesse
089988c11c
GOB: Fix Code analysis warnings
...
See bug report #3087831
svn-id: r53464
2010-10-15 04:37:44 +00:00
Max Horn
a1840bd573
AUDIO: Rename Mixer::playInputStream to playStream
...
svn-id: r48637
2010-04-12 09:14:17 +00:00
Sven Hesse
d4949d03d4
Minor style-related changes
...
svn-id: r47839
2010-02-03 03:25:50 +00:00
Arnaud Boutonné
48c023cd5b
Fascination - Fix one wrong wait time
...
svn-id: r47826
2010-02-02 23:33:10 +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
Max Horn
f720d99b0a
Switch Mixer::playInputStream to use DisposeAfterUse::Flag
...
svn-id: r47182
2010-01-08 22:09:43 +00:00
Arnaud Boutonné
0cfd6a4d76
Fix a buffer overflow (thanks to syke) and modify the way the instruments are loaded (bytes instead of uint16). This (sadly) doesn't fix the MDY player.
...
svn-id: r46936
2010-01-03 18:04:52 +00:00
Arnaud Boutonné
f3ca535038
Fix a buffer overflow, thanks to syke
...
svn-id: r46851
2010-01-01 21:18:19 +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
Max Horn
37e51f1575
Fixed some (pedantic) warnings
...
svn-id: r44015
2009-09-08 22:03:07 +00:00
Sven Hesse
483c3a51c3
Clarifying some warnings
...
svn-id: r41836
2009-06-24 21:47:54 +00:00
Sven Hesse
65891626a2
Changing the TBR FIXME into a warning in setVoice()
...
svn-id: r41803
2009-06-23 08:51:55 +00:00
Sven Hesse
3f404ef3c9
Removing trailing tabs
...
svn-id: r41784
2009-06-22 20:52:08 +00:00
Sven Hesse
6c7a790b54
Removing trailing spaces
...
svn-id: r41783
2009-06-22 20:51:48 +00:00
Sven Hesse
4ab4517016
Added stream-reading loading wrappers to MDYPlayer and added a workaround to fix TBR reading for the moment
...
svn-id: r41781
2009-06-22 20:27:47 +00:00
Sven Hesse
d4855ff819
Splitting an ADLPlayer and MDYPlayer from the AdLib class
...
svn-id: r41633
2009-06-18 13:27:35 +00:00
Sven Hesse
c73f11f0d1
Properly initializing _soundMode, for ADLs too
...
svn-id: r41591
2009-06-16 20:15:49 +00:00
Arnaud Boutonné
975a0d6567
MDY/TBR : fix a thing or two. Still far from being OK, but in-game ambiance "music" is (a little) less buggy
...
svn-id: r41584
2009-06-16 12:25:53 +00:00
Arnaud Boutonné
7eaf013bbf
Gob - *WIP* incomplete implementation of MDY/TBR
...
svn-id: r41498
2009-06-13 22:14:58 +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
Robin Watts
8f3b2e9b4d
Remove warnings from NDS build.
...
svn-id: r35172
2008-11-29 18:01:16 +00:00
Sven Hesse
6e13bde213
Changing debug channels a bit
...
svn-id: r32157
2008-05-17 19:01:00 +00:00
Sven Hesse
220d6ce82f
Restructured sound code
...
svn-id: r31937
2008-05-08 00:47:23 +00:00