ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

#include <fmopl.h>

Collaboration diagram for OPL::Config:

List of all members.

Classes

struct  EmulatorDescription

Public Types

enum  OplFlags { kFlagOpl2 = (1 << 0), kFlagDualOpl2 = (1 << 1), kFlagOpl3 = (1 << 2) }
enum  OplType { kOpl2, kDualOpl2, kOpl3 }
 

OPL type to emulate.

More...
typedef int8 DriverId

Static Public Member Functions

static const EmulatorDescriptiongetAvailable ()
 Get a list of all available OPL emulators.
static DriverId parse (const Common::String &name)
 Returns the driver id of a given name.
static const EmulatorDescriptionfindDriver (DriverId id)
static DriverId detect (OplType type)
 Detects a driver for the specific type.
static OPLcreate (DriverId driver, OplType type)
 Creates the specific driver with a specific type setup.
static OPLcreate (OplType type=kOpl2)
 Wrapper to easily init an OPL chip, without specifing an emulator.

Static Private Attributes

static const EmulatorDescription _drivers []

Detailed Description

Definition at line 44 of file fmopl.h.


Member Typedef Documentation

Definition at line 61 of file fmopl.h.


Member Enumeration Documentation

Enumerator:
kFlagOpl2 
kFlagDualOpl2 
kFlagOpl3 

Definition at line 46 of file fmopl.h.

OPL type to emulate.

Enumerator:
kOpl2 
kDualOpl2 
kOpl3 

Definition at line 55 of file fmopl.h.


Member Function Documentation

OPL * OPL::Config::create ( DriverId  driver,
OplType  type 
) [static]

Creates the specific driver with a specific type setup.

Definition at line 148 of file fmopl.cpp.

OPL * OPL::Config::create ( OplType  type = kOpl2  )  [static]

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.

Definition at line 144 of file fmopl.cpp.

Config::DriverId OPL::Config::detect ( OplType  type  )  [static]

Detects a driver for the specific type.

Returns:
Returns a valid driver id on success, -1 otherwise.

Definition at line 90 of file fmopl.cpp.

const Config::EmulatorDescription * OPL::Config::findDriver ( DriverId  id  )  [static]
Returns:
The driver description for the given id or 0 in case it is not available.

Definition at line 81 of file fmopl.cpp.

static const EmulatorDescription* OPL::Config::getAvailable (  )  [inline, static]

Get a list of all available OPL emulators.

Returns:
list of all available OPL emulators, terminated by a zero entry

Definition at line 74 of file fmopl.h.

Config::DriverId OPL::Config::parse ( const Common::String name  )  [static]

Returns the driver id of a given name.

Definition at line 72 of file fmopl.cpp.


Member Data Documentation

Initial value:
 {
    { "auto", "<default>", kAuto, kFlagOpl2 | kFlagDualOpl2 | kFlagOpl3 },
    { "mame", _s("MAME OPL emulator"), kMame, kFlagOpl2 },

    { "db", _s("DOSBox OPL emulator"), kDOSBox, kFlagOpl2 | kFlagDualOpl2 | kFlagOpl3 },


    { "alsa", _s("ALSA Direct FM"), kALSA, kFlagOpl2 | kFlagDualOpl2 | kFlagOpl3 },

    { 0, 0, 0, 0 }
}

Definition at line 106 of file fmopl.h.


The documentation for this class was generated from the following files:


Generated on Sat Mar 23 2019 05:08:51 for ResidualVM by doxygen 1.7.1
curved edge   curved edge