diff options
author | Vincent Bernat | 2018-02-17 12:50:19 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-04-08 09:17:19 +0200 |
commit | 9edd8eff0166c32fc2b5e07eaf0a37783a847ef3 (patch) | |
tree | 3899e7205ed46b47a619b7c718f04ec178557a11 /base | |
parent | 73c56f13e005f34c1a95ccae1c4a70e4f51df35e (diff) | |
download | scummvm-rg350-9edd8eff0166c32fc2b5e07eaf0a37783a847ef3.tar.gz scummvm-rg350-9edd8eff0166c32fc2b5e07eaf0a37783a847ef3.tar.bz2 scummvm-rg350-9edd8eff0166c32fc2b5e07eaf0a37783a847ef3.zip |
AUDIO: add support for OPL2LPT
The OPL2LPT is an OPL2 chip plugged on a parallel port. It is
write-only but otherwise acts as a classic AdLib. This commit adds
support for this device.
User is expected to have the right permissions on the parallel
port. By default, the first suitable parallel port is used. It is
possible to override that with the hidden configuration setting
"opl2lpt_parport".
It depends on the presence of the libieee1284 library which abstracts
a bit parallel port handling. An alternative would be to access
directly /dev/parportX on Linux. This would amount of code but it
would be Linux-only.
Tested with Indy 3 and SOMI.
Diffstat (limited to 'base')
-rw-r--r-- | base/commandLine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/commandLine.cpp b/base/commandLine.cpp index 10ded95a51..9e62443d30 100644 --- a/base/commandLine.cpp +++ b/base/commandLine.cpp @@ -135,6 +135,9 @@ static const char HELP_STRING[] = #ifndef DISABLE_NUKED_OPL ", nuked" #endif +#ifdef ENABLE_OPL2LPT + ", opl2lpt" +#endif ")\n" " --aspect-ratio Enable aspect ratio correction\n" " --render-mode=MODE Enable additional render modes (hercGreen, hercAmber,\n" @@ -224,6 +227,7 @@ void registerDefaults() { ConfMan.registerDefault("music_driver", "auto"); ConfMan.registerDefault("mt32_device", "null"); ConfMan.registerDefault("gm_device", "null"); + ConfMan.registerDefault("opl2lpt_parport", "null"); ConfMan.registerDefault("cdrom", 0); |