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

adlib.cpp File Reference

#include "common/debug.h"
#include "common/error.h"
#include "common/scummsys.h"
#include "common/system.h"
#include "common/textconsole.h"
#include "common/types.h"
#include "common/util.h"
#include "audio/fmopl.h"
#include "audio/musicplugin.h"
#include "common/translation.h"
#include "common/pack-start.h"
#include "common/pack-end.h"
Include dependency graph for adlib.cpp:

Go to the source code of this file.

Classes

struct  InstrumentExtra
struct  AdLibInstrument
class  AdLibPart
class  AdLibPercussionChannel
struct  Struct10
struct  Struct11
struct  AdLibVoice
struct  AdLibSetParams
class  MidiDriver_ADLIB
class  AdLibEmuMusicPlugin

Defines

#define ENABLE_OPL3

Functions

static int lookupVolume (int a, int b)
static void createLookupTable ()
 REGISTER_PLUGIN_STATIC (ADLIB, PLUGIN_TYPE_MUSIC, AdLibEmuMusicPlugin)

Variables

struct InstrumentExtra PACKED_STRUCT
static const byte g_operator1Offsets [9]
static const byte g_operator2Offsets [9]
static const AdLibSetParams g_setParamTable []
static const byte g_paramTable1 [16]
static const uint16 g_maxValTable [16]
static const uint16 g_numStepsTable []
static const byte g_noteFrequencies []
static const AdLibInstrument g_gmInstruments [128]
static AdLibInstrument g_gmPercussionInstruments [39]
static const AdLibInstrument g_gmInstrumentsOPL3 [128][2]
static const AdLibInstrument g_gmPercussionInstrumentsOPL3 [39][2]
static const byte g_gmPercussionInstrumentMap [128]
static byte g_volumeLookupTable [64][32]
static const byte g_volumeTable []

Define Documentation

#define ENABLE_OPL3

Definition at line 41 of file adlib.cpp.


Function Documentation

static void createLookupTable (  )  [static]

Definition at line 908 of file adlib.cpp.

static int lookupVolume ( int  a,
int  b 
) [static]

Definition at line 882 of file adlib.cpp.

REGISTER_PLUGIN_STATIC ( ADLIB  ,
PLUGIN_TYPE_MUSIC  ,
AdLibEmuMusicPlugin   
)

Variable Documentation

const AdLibInstrument g_gmInstruments[128] [static]

Definition at line 327 of file adlib.cpp.

const AdLibInstrument g_gmInstrumentsOPL3[128][2] [static]

Definition at line 509 of file adlib.cpp.

const byte g_gmPercussionInstrumentMap[128] [static]
Initial value:
 {
    0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
    0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
    0xFF, 0xFF, 0xFF, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C,
    0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0xFF, 0xFF, 0x17, 0x18, 0x19, 0x1A,
    0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x21, 0x22, 0x23, 0xFF, 0xFF,
    0x24, 0x25, 0xFF, 0xFF, 0xFF, 0x26, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
    0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
    0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF
}

Definition at line 850 of file adlib.cpp.

Definition at line 466 of file adlib.cpp.

Definition at line 768 of file adlib.cpp.

const uint16 g_maxValTable[16] [static]
Initial value:
 {
    0x2FF, 0x1F, 0x7, 0x3F,
    0x0F, 0x0F, 0x0F, 0x3,
    0x3F, 0x0F, 0x0F, 0x0F,
    0x3, 0x3E, 0x1F, 0
}

Definition at line 288 of file adlib.cpp.

const byte g_noteFrequencies[] [static]
Initial value:
 {
    90, 91, 92, 92, 93, 94, 94, 95,
    96, 96, 97, 98, 98, 99, 100, 101,
    101, 102, 103, 104, 104, 105, 106, 107,
    107, 108, 109, 110, 111, 111, 112, 113,
    114, 115, 115, 116, 117, 118, 119, 120,
    121, 121, 122, 123, 124, 125, 126, 127,
    128, 129, 130, 131, 132, 132, 133, 134,
    135, 136, 137, 138, 139, 140, 141, 142,
    143, 145, 146, 147, 148, 149, 150, 151,
    152, 153, 154, 155, 157, 158, 159, 160,
    161, 162, 163, 165, 166, 167, 168, 169,
    171, 172, 173, 174, 176, 177, 178, 180,
    181, 182, 184, 185, 186, 188, 189, 190,
    192, 193, 194, 196, 197, 199, 200, 202,
    203, 205, 206, 208, 209, 211, 212, 214,
    215, 217, 218, 220, 222, 223, 225, 226,
    228, 230, 231, 233, 235, 236, 238, 240,
    242, 243, 245, 247, 249, 251, 252, 254
}

Definition at line 306 of file adlib.cpp.

const uint16 g_numStepsTable[] [static]
Initial value:
 {
    1, 2, 4, 5,
    6, 7, 8, 9,
    10, 12, 14, 16,
    18, 21, 24, 30,
    36, 50, 64, 82,
    100, 136, 160, 192,
    240, 276, 340, 460,
    600, 860, 1200, 1600
}

Definition at line 295 of file adlib.cpp.

const byte g_operator1Offsets[9] [static]
Initial value:
 {
    0, 1, 2, 8,
    9, 10, 16, 17,
    18
}

Definition at line 251 of file adlib.cpp.

const byte g_operator2Offsets[9] [static]
Initial value:
 {
    3, 4, 5, 11,
    12, 13, 19, 20,
    21
}

Definition at line 257 of file adlib.cpp.

const byte g_paramTable1[16] [static]
Initial value:
 {
    29, 28, 27, 0,
    3, 4, 7, 8,
    13, 16, 17, 20,
    21, 30, 31, 0
}

Definition at line 281 of file adlib.cpp.

const AdLibSetParams g_setParamTable[] [static]
Initial value:
 {
    {0x40, 0, 63, 63},  
    {0xE0, 2, 0, 0},    
    {0x40, 6, 192, 0},  
    {0x20, 0, 15, 0},   
    {0x60, 4, 240, 15}, 
    {0x60, 0, 15, 15},  
    {0x80, 4, 240, 15}, 
    {0x80, 0, 15, 15},  
    {0xE0, 0, 3, 0},    
    {0x20, 7, 128, 0},  
    {0x20, 6, 64, 0},   
    {0x20, 5, 32, 0},   
    {0x20, 4, 16, 0},   
    {0xC0, 0, 1, 0},    
    {0xC0, 1, 14, 0}    
}

Definition at line 263 of file adlib.cpp.

byte g_volumeLookupTable[64][32] [static]

Definition at line 861 of file adlib.cpp.

const byte g_volumeTable[] [static]
Initial value:
 {
    0, 4, 7, 11,
    13, 16, 18, 20,
    22, 24, 26, 27,
    29, 30, 31, 33,
    34, 35, 36, 37,
    38, 39, 40, 41,
    42, 43, 44, 44,
    45, 46, 47, 47,
    48, 49, 49, 50,
    51, 51, 52, 53,
    53, 54, 54, 55,
    55, 56, 56, 57,
    57, 58, 58, 59,
    59, 60, 60, 60,
    61, 61, 62, 62,
    62, 63, 63, 63
}

Definition at line 863 of file adlib.cpp.



Generated on Sat May 18 2019 05:01:34 for ResidualVM by doxygen 1.7.1
curved edge   curved edge