From f1f29302f5401c4782985cec4d47d069b99036ee Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Fri, 3 Apr 2015 00:18:58 -0400 Subject: AUDIO: Remove the legacy OPL API --- audio/fmopl.cpp | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'audio/fmopl.cpp') diff --git a/audio/fmopl.cpp b/audio/fmopl.cpp index 00e49ef598..3ee557366c 100644 --- a/audio/fmopl.cpp +++ b/audio/fmopl.cpp @@ -174,40 +174,3 @@ OPL *Config::create(DriverId driver, OplType type) { bool OPL::_hasInstance = false; } // End of namespace OPL - -void OPLDestroy(FM_OPL *OPL) { - delete OPL; -} - -void OPLResetChip(FM_OPL *OPL) { - OPL->reset(); -} - -void OPLWrite(FM_OPL *OPL, int a, int v) { - OPL->write(a, v); -} - -unsigned char OPLRead(FM_OPL *OPL, int a) { - return OPL->read(a); -} - -void OPLWriteReg(FM_OPL *OPL, int r, int v) { - OPL->writeReg(r, v); -} - -void YM3812UpdateOne(FM_OPL *OPL, int16 *buffer, int length) { - OPL->readBuffer(buffer, length); -} - -FM_OPL *makeAdLibOPL(int rate) { - FM_OPL *opl = OPL::Config::create(); - - if (opl) { - if (!opl->init(rate)) { - delete opl; - opl = 0; - } - } - - return opl; -} -- cgit v1.2.3