diff options
Diffstat (limited to 'sound/fmopl.cpp')
-rw-r--r-- | sound/fmopl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/fmopl.cpp b/sound/fmopl.cpp index d97ab48e81..f8f6b97fcc 100644 --- a/sound/fmopl.cpp +++ b/sound/fmopl.cpp @@ -90,6 +90,8 @@ Config::DriverId Config::detect(OplType type) { } // Detect the first matching emulator + drv = -1; + for (int i = 1; _drivers[i].name; ++i) { if (_drivers[i].flags & flags) { drv = _drivers[i].id; @@ -100,6 +102,10 @@ Config::DriverId Config::detect(OplType type) { return drv; } +OPL *Config::create(OplType type) { + return create(kAuto, type); +} + OPL *Config::create(DriverId driver, OplType type) { // On invalid driver selection, we try to do some fallback detection if (driver == -1) { |