diff options
author | Matthew Hoops | 2015-04-03 01:38:14 -0400 |
---|---|---|
committer | Matthew Hoops | 2015-07-07 20:19:42 -0400 |
commit | b9307ef1a4420ef61aa35c747d2f3f11875d3b72 (patch) | |
tree | 8f47b4cccb59139a1afecf4451ca4e578993007d /audio/softsynth/opl/dosbox.h | |
parent | 2e8f9dcec93653f1bd1f115662f9fcf3a5581fd8 (diff) | |
download | scummvm-rg350-b9307ef1a4420ef61aa35c747d2f3f11875d3b72.tar.gz scummvm-rg350-b9307ef1a4420ef61aa35c747d2f3f11875d3b72.tar.bz2 scummvm-rg350-b9307ef1a4420ef61aa35c747d2f3f11875d3b72.zip |
AUDIO: Introduce a callback to the OPL code
Currently unused, but ready to be hooked up to various classes using it.
Diffstat (limited to 'audio/softsynth/opl/dosbox.h')
-rw-r--r-- | audio/softsynth/opl/dosbox.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/audio/softsynth/opl/dosbox.h b/audio/softsynth/opl/dosbox.h index d3df6ba6ed..c52f06761a 100644 --- a/audio/softsynth/opl/dosbox.h +++ b/audio/softsynth/opl/dosbox.h @@ -69,7 +69,7 @@ namespace DBOPL { struct Chip; } // end of namespace DBOPL -class OPL : public ::OPL::OPL { +class OPL : public ::OPL::EmulatedOPL { private: Config::OplType _type; uint _rate; @@ -95,8 +95,10 @@ public: void writeReg(int r, int v); - void readBuffer(int16 *buffer, int length); bool isStereo() const { return _type != Config::kOpl2; } + +protected: + void generateSamples(int16 *buffer, int length); }; } // End of namespace DOSBox |