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

dbopl.cpp File Reference

#include "dbopl.h"
Include dependency graph for dbopl.cpp:

Go to the source code of this file.

Namespaces

namespace  OPL
namespace  OPL::DOSBox
namespace  OPL::DOSBox::DBOPL

Defines

#define OPLRATE   ((double)(14318180.0 / 288.0))
#define TREMOLO_TABLE   52
#define WAVE_BITS   10
#define WAVE_SH   ( 32 - WAVE_BITS )
#define WAVE_MASK   ( ( 1 << WAVE_SH ) - 1 )
#define LFO_SH   ( WAVE_SH - 10 )
#define LFO_MAX   ( 256 << ( LFO_SH ) )
#define ENV_BITS   ( 9 )
#define ENV_MIN   0
#define ENV_EXTRA   ( ENV_BITS - 9 )
#define ENV_MAX   ( 511 << ENV_EXTRA )
#define ENV_LIMIT   ( ( 12 * 256) >> ( 3 - ENV_EXTRA ) )
#define ENV_SILENT(_X_)   ( (_X_) >= ENV_LIMIT )
#define RATE_SH   24
#define RATE_MASK   ( ( 1 << RATE_SH ) - 1 )
#define MUL_SH   16
#define M(_X_)   ((Bit8u)( (_X_) * 2))
#define REGOP(_FUNC_)
#define REGCHAN(_FUNC_)

Functions

static void OPL::DOSBox::DBOPL::EnvelopeSelect (Bit8u val, Bit8u &index, Bit8u &shift)
void OPL::DOSBox::DBOPL::InitTables (void)

Variables

static const Bit8u OPL::DOSBox::DBOPL::KslCreateTable [16]
static const Bit8u OPL::DOSBox::DBOPL::FreqCreateTable [16]
static const Bit8u OPL::DOSBox::DBOPL::AttackSamplesTable [13]
static const Bit8u OPL::DOSBox::DBOPL::EnvelopeIncreaseTable [13]
static Bit16s OPL::DOSBox::DBOPL::WaveTable [8 *512]
static const Bit16u OPL::DOSBox::DBOPL::WaveBaseTable [8]
static const Bit16u OPL::DOSBox::DBOPL::WaveMaskTable [8]
static const Bit16u OPL::DOSBox::DBOPL::WaveStartTable [8]
static Bit16u OPL::DOSBox::DBOPL::MulTable [384]
static Bit8u OPL::DOSBox::DBOPL::KslTable [8 *16]
static Bit8u OPL::DOSBox::DBOPL::TremoloTable [TREMOLO_TABLE]
static Bit16u OPL::DOSBox::DBOPL::ChanOffsetTable [32]
static Bit16u OPL::DOSBox::DBOPL::OpOffsetTable [64]
static const Bit8s OPL::DOSBox::DBOPL::VibratoTable [8]
static const Bit8u OPL::DOSBox::DBOPL::KslShiftTable [4]
static const VolumeHandler OPL::DOSBox::DBOPL::VolumeHandlerTable [5]
static bool OPL::DOSBox::DBOPL::doneTables = false

Define Documentation

#define ENV_BITS   ( 9 )

Definition at line 69 of file dbopl.cpp.

#define ENV_EXTRA   ( ENV_BITS - 9 )

Definition at line 76 of file dbopl.cpp.

#define ENV_LIMIT   ( ( 12 * 256) >> ( 3 - ENV_EXTRA ) )

Definition at line 78 of file dbopl.cpp.

#define ENV_MAX   ( 511 << ENV_EXTRA )

Definition at line 77 of file dbopl.cpp.

#define ENV_MIN   0

Definition at line 75 of file dbopl.cpp.

#define ENV_SILENT (   _X_  )     ( (_X_) >= ENV_LIMIT )

Definition at line 79 of file dbopl.cpp.

#define LFO_MAX   ( 256 << ( LFO_SH ) )

Definition at line 62 of file dbopl.cpp.

#define LFO_SH   ( WAVE_SH - 10 )

Definition at line 60 of file dbopl.cpp.

#define M (   _X_  )     ((Bit8u)( (_X_) * 2))

Definition at line 102 of file dbopl.cpp.

#define MUL_SH   16

Definition at line 85 of file dbopl.cpp.

#define OPLRATE   ((double)(14318180.0 / 288.0))

Definition at line 40 of file dbopl.cpp.

#define RATE_MASK   ( ( 1 << RATE_SH ) - 1 )

Definition at line 83 of file dbopl.cpp.

#define RATE_SH   24

Definition at line 82 of file dbopl.cpp.

#define REGCHAN (   _FUNC_  ) 
Value:
index = ( ( reg >> 4) & 0x10 ) | ( reg & 0xf );                                     \
    if ( ChanOffsetTable[ index ] ) {                                                   \
        Channel* regChan = (Channel *)( ((char *)this ) + ChanOffsetTable[ index ] );   \
        regChan->_FUNC_( this, val );                                                   \
    }

Definition at line 1133 of file dbopl.cpp.

#define REGOP (   _FUNC_  ) 
Value:
index = ( ( reg >> 3) & 0x20 ) | ( reg & 0x1f );                                \
    if ( OpOffsetTable[ index ] ) {                                                 \
        Operator* regOp = (Operator *)( ((char *)this ) + OpOffsetTable[ index ] ); \
        regOp->_FUNC_( this, val );                                                 \
    }

Definition at line 1126 of file dbopl.cpp.

#define TREMOLO_TABLE   52

Definition at line 41 of file dbopl.cpp.

#define WAVE_BITS   10

Definition at line 49 of file dbopl.cpp.

#define WAVE_MASK   ( ( 1 << WAVE_SH ) - 1 )

Definition at line 57 of file dbopl.cpp.

#define WAVE_SH   ( 32 - WAVE_BITS )

Definition at line 56 of file dbopl.cpp.



Generated on Sat Apr 20 2019 05:05:30 for ResidualVM by doxygen 1.7.1
curved edge   curved edge