aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound/fmopl.cpp2
-rw-r--r--sound/fmopl.h5
2 files changed, 4 insertions, 3 deletions
diff --git a/sound/fmopl.cpp b/sound/fmopl.cpp
index 0860cc5220..9fc57ff027 100644
--- a/sound/fmopl.cpp
+++ b/sound/fmopl.cpp
@@ -167,7 +167,7 @@ void YM3812UpdateOne(FM_OPL *OPL, int16 *buffer, int length) {
}
FM_OPL *makeAdlibOPL(int rate) {
- FM_OPL *opl = OPL::Config::create(OPL::Config::kOpl2);
+ FM_OPL *opl = OPL::Config::create();
if (opl) {
if (!opl->init(rate)) {
diff --git a/sound/fmopl.h b/sound/fmopl.h
index d92309b87e..81d9610a44 100644
--- a/sound/fmopl.h
+++ b/sound/fmopl.h
@@ -72,7 +72,7 @@ public:
/**
* Detects a driver for the specific type.
*/
- static DriverId detect(OplType type = kOpl2);
+ static DriverId detect(OplType type);
/**
* Creates the specific driver with a specific type setup.
@@ -81,8 +81,9 @@ public:
/**
* Wrapper to easily init an OPL chip, without specifing an emulator.
+ * By default it will try to initialize an OPL2 emulator, thus an AdLib card.
*/
- static OPL *create(OplType type) { return create(detect(type), type); }
+ static OPL *create(OplType type = kOpl2) { return create(detect(type), type); }
private:
static const EmulatorDescription _drivers[];