Johannes Schickel
452cec49d9
AUDIO: Make GPL headers consistent in themselves.
2014-02-18 02:39:32 +01:00
Torbjörn Andersson
8881f71ac5
AUDIO: Fix AdLib volume when ENABLE_OPL3 is not defined
...
This should ensure that when ENABLE_OPL3 is not defined, the old
code (using a lookup table) is used for calculating vol1 and vol2
(unless, of course, _scummSmallHeader is true). I hope I got it
right this time.
2012-12-01 11:48:51 +01:00
Torbjörn Andersson
5cd7e5d777
AUDIO: Fix AdLib volume regression in pre-iMUSE SCUMM games
...
This assumes that _scummSmallHeader = 1 means we don't care about
what _opl3Mode is when calculating the volume in mcKeyOn(). I hope
this is correct.
2012-12-01 11:43:51 +01:00
D G Turner
d654057a98
AUDIO: Fix spurious compiler warnings about use-before-set variable.
2012-11-23 19:01:38 +00:00
Johannes Schickel
1f69192f7d
AUDIO: Remove two extra commas.
2012-11-22 02:29:57 +01:00
Johannes Schickel
761a98997c
AUDIO: Disallow custom percussion instruments in MIDI->AdLib code.
2012-11-22 02:22:25 +01:00
Johannes Schickel
689497f06e
AUDIO: Only enable OPL3 code in MIDI->AdLib, when we have the DOSBox emulator builtin.
2012-11-22 02:18:51 +01:00
Johannes Schickel
be60a641bf
AUDIO: Slight cleanup and typo fix in S&M OPL3 code.
2012-11-20 03:27:12 +01:00
Johannes Schickel
abe637b0f5
AUDIO: Add support for Sam&Max's OPL3 output in our SCUMM AdLib driver.
...
This is an initial implementation and does not implement the differences
in voice allocation.
2012-10-01 03:10:44 +02:00
Johannes Schickel
04baadcf7a
AUDIO: Switch MidiDriver_ADLIB to new OPL API.
2012-09-30 21:36:52 +02:00
Johannes Schickel
78e8b9dd59
AUDIO: Properly handle AdLibPercussionChannel::noteOff.
2012-09-30 21:28:18 +02:00
Johannes Schickel
e5c41cbf9a
AUDIO: Comment out unused member in AdLibPart.
2012-09-30 21:22:03 +02:00
Johannes Schickel
8eeb3f2bf9
AUDIO: Give AdLibSetParam's members more descriptive names.
2012-09-30 21:17:04 +02:00
Johannes Schickel
c2d39e9152
AUDIO: Enforce method naming guidelines in adlib.cpp.
2012-09-30 21:13:07 +02:00
Johannes Schickel
2d01b7de43
AUDIO: Enforce variable naming guidelines in adlib.cpp.
2012-09-30 21:13:05 +02:00
Johannes Schickel
b63950f40d
AUDIO: Fix formatting in adlib.cpp.
...
Powered by astyle.cpp.
2012-09-30 21:12:05 +02:00
Johannes Schickel
a222e0640f
AUDIO: Rename global variables in SCUMM AdLib code.
...
This does give them slightly nicer names and also adds a "g_" prefix to them.
2012-09-30 21:11:15 +02:00
Johannes Schickel
0affcfed9e
AUDIO: Very small formatting fix.
2011-11-20 04:37:21 +01:00
Alyssa Milburn
eb9ea8fee6
AUDIO: Fix custom AdLib percussion instruments.
...
The struct wasn't being zeroed out, a regression from b22ca4ff .
2011-06-03 00:06:02 +02:00
strangerke
69b1485a22
GIT: Clean up: Suppress SVN tags, now useless
2011-05-12 01:16:22 +02:00
Max Horn
b22ca4ffe8
AUDIO: Change byte data tables to type AdLibInstrument
2011-05-10 14:43:53 +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
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