diff options
Diffstat (limited to 'audio/softsynth/opl/mame.cpp')
-rw-r--r-- | audio/softsynth/opl/mame.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/audio/softsynth/opl/mame.cpp b/audio/softsynth/opl/mame.cpp index da75ba76ba..1a5810f6c8 100644 --- a/audio/softsynth/opl/mame.cpp +++ b/audio/softsynth/opl/mame.cpp @@ -31,6 +31,8 @@ #include "mame.h" +#include "audio/mixer.h" +#include "common/system.h" #include "common/textconsole.h" #include "common/util.h" @@ -50,11 +52,11 @@ OPL::~OPL() { _opl = 0; } -bool OPL::init(int rate) { +bool OPL::init() { if (_opl) MAME::OPLDestroy(_opl); - _opl = MAME::makeAdLibOPL(rate); + _opl = MAME::makeAdLibOPL(g_system->getMixer()->getOutputRate()); return (_opl != 0); } |