diff options
author | Johannes Schickel | 2009-05-05 22:18:26 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-05-05 22:18:26 +0000 |
commit | 625f41c135a2dc9b242443a874370e5273ecb638 (patch) | |
tree | 1a5f679307eeb527bbac54ab78d0848daa38df08 /sound/softsynth/opl/mame.cpp | |
parent | 5cc44292a2d47faa418651169f5a66cf99419e78 (diff) | |
download | scummvm-rg350-625f41c135a2dc9b242443a874370e5273ecb638.tar.gz scummvm-rg350-625f41c135a2dc9b242443a874370e5273ecb638.tar.bz2 scummvm-rg350-625f41c135a2dc9b242443a874370e5273ecb638.zip |
Cleanup:
- Rename OPL_DOSBox to OPL, since it's inside a seperate namespace anyway
- Reanme MAME_OPL to OPL, since it's inside a seperate namespace anyway
svn-id: r40338
Diffstat (limited to 'sound/softsynth/opl/mame.cpp')
-rw-r--r-- | sound/softsynth/opl/mame.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/softsynth/opl/mame.cpp b/sound/softsynth/opl/mame.cpp index 6427469a59..c44abd16f9 100644 --- a/sound/softsynth/opl/mame.cpp +++ b/sound/softsynth/opl/mame.cpp @@ -40,12 +40,12 @@ namespace OPL { namespace MAME { -OPL_MAME::~OPL_MAME() { +OPL::~OPL() { MAME::OPLDestroy(_opl); _opl = 0; } -bool OPL_MAME::init(int rate) { +bool OPL::init(int rate) { if (_opl) MAME::OPLDestroy(_opl); @@ -53,23 +53,23 @@ bool OPL_MAME::init(int rate) { return (_opl != 0); } -void OPL_MAME::reset() { +void OPL::reset() { MAME::OPLResetChip(_opl); } -void OPL_MAME::write(int a, int v) { +void OPL::write(int a, int v) { MAME::OPLWrite(_opl, a, v); } -byte OPL_MAME::read(int a) { +byte OPL::read(int a) { return MAME::OPLRead(_opl, a); } -void OPL_MAME::writeReg(int r, int v) { +void OPL::writeReg(int r, int v) { MAME::OPLWriteReg(_opl, r, v); } -void OPL_MAME::readBuffer(int16 *buffer, int length) { +void OPL::readBuffer(int16 *buffer, int length) { MAME::YM3812UpdateOne(_opl, buffer, length); } |