From d158280425efac5f4ec72e00fb2b7389cdfb5a75 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 24 Feb 2004 22:39:42 +0000 Subject: the OSystem changes we discussed on the ML (note: renaming of the existing OSystem API is not yet finished); porters will have to fix their ports to get them to compile again svn-id: r13036 --- backends/midi/adlib.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'backends/midi') diff --git a/backends/midi/adlib.cpp b/backends/midi/adlib.cpp index 02261fed71..7fb0de39b1 100644 --- a/backends/midi/adlib.cpp +++ b/backends/midi/adlib.cpp @@ -852,11 +852,7 @@ int MidiDriver_ADLIB::open() { _adlib_reg_cache = (byte *)calloc(256, 1); - // We need to emulate one YM3812 chip - int env_bits = g_system->property(OSystem::PROP_GET_FMOPL_ENV_BITS, NULL); - int eg_ent = g_system->property(OSystem::PROP_GET_FMOPL_EG_ENT, NULL); - OPLBuildTables((env_bits ? env_bits : FMOPL_ENV_BITS_HQ), (eg_ent ? eg_ent : FMOPL_EG_ENT_HQ)); - _opl = OPLCreate(OPL_TYPE_YM3812, 3579545, _mixer->getOutputRate()); + _opl = makeAdlibOPL(_mixer->getOutputRate()); adlib_write(1, 0x20); adlib_write(8, 0x40); -- cgit v1.2.3