1,079
edits
Line 138: | Line 138: | ||
== Rewrite FMOPL emulator == | == Rewrite FMOPL emulator == | ||
Many games supported by ScummVM contain sound data in the [http://en.wikipedia.org/wiki/Adlib|Adlib] format. The AdLib was based on the Yamaha YM3812 sound chip (also known as OPL2), which produced sound via FM synthesis. | |||
In ScummVM we use the well-known FMOPL emulator from MAME V0.37a with some modifications (the name is the composition of "FM" and "OPL", see above). That was one of the few | |||
versions on MAME released under the GPL, making it legal for us to use this particular version of the FMOPL code. Jarek Burczynski later rewrote the FMOPL emulator to be bit-precise, but unfortunately for us his work has only been released under a GPL-incompatible license. | |||
There are several approaches to do | What needs to be done is to understand Jarek's current code and write a new emulator. Efforts must | ||
be made to avoid verbatim copying of his code, to ensure no license violation takes place. | |||
emulator which we have | |||
There are several approaches to do this, but most are not suitable for a single developer. A possible approach would be to fix our current FMOPL code ny looking on how Jarek's code works. Another would be to start with a second, totally different emulator which we have and gradually improve that one (which was written by Ken Silverman and released under the GPL). | |||
<font color="magenta">Fingolfin has some doubts whether this is a realistic project. In particular, the approaches suggested above would possibly still violate Jarek's license, as most license do cover "derived" work -- and looking at some code and then writing your own definitely falls into that category</font> | |||
== MIDI enhancements == | == MIDI enhancements == |
edits