diff options
author | Matthew Hoops | 2015-04-03 00:18:58 -0400 |
---|---|---|
committer | Matthew Hoops | 2015-07-07 20:19:42 -0400 |
commit | f1f29302f5401c4782985cec4d47d069b99036ee (patch) | |
tree | 60c6c8c7b2867cf9524197d2c2c0734746906b71 /audio/fmopl.cpp | |
parent | 2fa1ce51dd3cb00eef289094fe9f660c237254bc (diff) | |
download | scummvm-rg350-f1f29302f5401c4782985cec4d47d069b99036ee.tar.gz scummvm-rg350-f1f29302f5401c4782985cec4d47d069b99036ee.tar.bz2 scummvm-rg350-f1f29302f5401c4782985cec4d47d069b99036ee.zip |
AUDIO: Remove the legacy OPL API
Diffstat (limited to 'audio/fmopl.cpp')
-rw-r--r-- | audio/fmopl.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
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; -} |