Commit Graph

6 Commits

Author SHA1 Message Date
Coen Rampen
d8491ecea4 AUDIO: Add default for OPL channel volume
This adds an option to the AdLib multisource driver to set the MIDI channel
volume that will be used to initialize to OPL 4x registers.
2021-10-09 16:59:44 +02:00
Coen Rampen
c0388b833c AUDIO/MIDI: Fix OPL empty instrument check
The empty OPL instrument check would check only the ADSR envelope fields for 0,
assuming this would mean the instrument would produce no sound. However, some
of these fields are flipped, i.e. max value would produce no sound. So this
shortcut was invalid. It is replaced by checking all fields for 0.
2021-08-14 21:48:10 +02:00
Coen Rampen
1b6b124c57 AUDIO/MIDI: Clear timer registers in OPL driver init 2021-08-14 21:48:10 +02:00
Max Horn
34523aba7e JANITORIAL: Fix some typos 2021-08-04 15:43:15 +02:00
Coen Rampen
d897fe590e AUDIO: Fix struct and const init, add missing breaks 2021-07-02 15:40:13 +02:00
Coen Rampen
d8c3e22a54 AUDIO/MIDI: Add multisource AdLib MIDI driver.
This adds a MIDI driver for AdLib / OPL2 and OPL3 with support for multiple
simultaneous sources of MIDI data. Additionally, it is easier to subclass the
driver and customize its behavior than the existing AdLib MIDI driver. The
standard behavior matches the Windows 95 SB16 driver.
2021-07-02 14:16:50 +02:00