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

OPL::DOSBox::DBOPL::Operator Struct Reference

#include <dbopl.h>

List of all members.

Public Types

enum  { MASK_KSR = 0x10, MASK_SUSTAIN = 0x20, MASK_VIBRATO = 0x40, MASK_TREMOLO = 0x80 }
enum  State {
  OFF, RELEASE, SUSTAIN, DECAY,
  ATTACK
}

Public Member Functions

void UpdateAttenuation ()
void UpdateRates (const Chip *chip)
void UpdateFrequency ()
void Write20 (const Chip *chip, Bit8u val)
void Write40 (const Chip *chip, Bit8u val)
void Write60 (const Chip *chip, Bit8u val)
void Write80 (const Chip *chip, Bit8u val)
void WriteE0 (const Chip *chip, Bit8u val)
bool Silent () const
void Prepare (const Chip *chip)
void KeyOn (Bit8u mask)
void KeyOff (Bit8u mask)
template<State state>
Bits TemplateVolume ()
Bit32s RateForward (Bit32u add)
Bitu ForwardWave ()
Bitu ForwardVolume ()
Bits GetSample (Bits modulation)
Bits GetWave (Bitu index, Bitu vol)
 Operator ()

Public Attributes

VolumeHandler volHandler
Bit16swaveBase
Bit32u waveMask
Bit32u waveStart
Bit32u waveIndex
Bit32u waveAdd
Bit32u waveCurrent
Bit32u chanData
Bit32u freqMul
Bit32u vibrato
Bit32s sustainLevel
Bit32s totalLevel
Bit32u currentLevel
Bit32s volume
Bit32u attackAdd
Bit32u decayAdd
Bit32u releaseAdd
Bit32u rateIndex
Bit8u rateZero
Bit8u keyOn
Bit8u reg20
Bit8u reg40
Bit8u reg60
Bit8u reg80
Bit8u regE0
Bit8u state
Bit8u tremoloMask
Bit8u vibStrength
Bit8u ksr

Private Member Functions

void SetState (Bit8u s)
void UpdateAttack (const Chip *chip)
void UpdateRelease (const Chip *chip)
void UpdateDecay (const Chip *chip)

Detailed Description

Definition at line 94 of file dbopl.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
MASK_KSR 
MASK_SUSTAIN 
MASK_VIBRATO 
MASK_TREMOLO 

Definition at line 97 of file dbopl.h.

Enumerator:
OFF 
RELEASE 
SUSTAIN 
DECAY 
ATTACK 

Definition at line 104 of file dbopl.h.


Constructor & Destructor Documentation

OPL::DOSBox::DBOPL::Operator::Operator (  ) 

Definition at line 593 of file dbopl.cpp.


Member Function Documentation

INLINE Bitu OPL::DOSBox::DBOPL::Operator::ForwardVolume (  ) 

Definition at line 432 of file dbopl.cpp.

INLINE Bitu OPL::DOSBox::DBOPL::Operator::ForwardWave (  ) 

Definition at line 437 of file dbopl.cpp.

INLINE Bits OPL::DOSBox::DBOPL::Operator::GetSample ( Bits  modulation  ) 

Definition at line 580 of file dbopl.cpp.

INLINE Bits OPL::DOSBox::DBOPL::Operator::GetWave ( Bitu  index,
Bitu  vol 
)

Definition at line 563 of file dbopl.cpp.

void OPL::DOSBox::DBOPL::Operator::KeyOff ( Bit8u  mask  ) 

Definition at line 554 of file dbopl.cpp.

void OPL::DOSBox::DBOPL::Operator::KeyOn ( Bit8u  mask  ) 

Definition at line 540 of file dbopl.cpp.

INLINE void OPL::DOSBox::DBOPL::Operator::Prepare ( const Chip chip  ) 

Definition at line 527 of file dbopl.cpp.

INLINE Bit32s OPL::DOSBox::DBOPL::Operator::RateForward ( Bit32u  add  ) 

Definition at line 365 of file dbopl.cpp.

INLINE void OPL::DOSBox::DBOPL::Operator::SetState ( Bit8u  s  )  [private]

Definition at line 514 of file dbopl.cpp.

INLINE bool OPL::DOSBox::DBOPL::Operator::Silent (  )  const

Definition at line 519 of file dbopl.cpp.

template<Operator::State yes>
Bits OPL::DOSBox::DBOPL::Operator::TemplateVolume (  ) 

Definition at line 373 of file dbopl.cpp.

void OPL::DOSBox::DBOPL::Operator::UpdateAttack ( const Chip chip  )  [inline, private]

Definition at line 278 of file dbopl.cpp.

void OPL::DOSBox::DBOPL::Operator::UpdateAttenuation (  )  [inline]

Definition at line 318 of file dbopl.cpp.

void OPL::DOSBox::DBOPL::Operator::UpdateDecay ( const Chip chip  )  [inline, private]

Definition at line 289 of file dbopl.cpp.

void OPL::DOSBox::DBOPL::Operator::UpdateFrequency (  ) 

Definition at line 327 of file dbopl.cpp.

void OPL::DOSBox::DBOPL::Operator::UpdateRates ( const Chip chip  ) 

Definition at line 350 of file dbopl.cpp.

void OPL::DOSBox::DBOPL::Operator::UpdateRelease ( const Chip chip  )  [inline, private]

Definition at line 300 of file dbopl.cpp.

void OPL::DOSBox::DBOPL::Operator::Write20 ( const Chip chip,
Bit8u  val 
)

Definition at line 442 of file dbopl.cpp.

void OPL::DOSBox::DBOPL::Operator::Write40 ( const Chip chip,
Bit8u  val 
)

Definition at line 467 of file dbopl.cpp.

void OPL::DOSBox::DBOPL::Operator::Write60 ( const Chip chip,
Bit8u  val 
)

Definition at line 474 of file dbopl.cpp.

void OPL::DOSBox::DBOPL::Operator::Write80 ( const Chip chip,
Bit8u  val 
)

Definition at line 485 of file dbopl.cpp.

void OPL::DOSBox::DBOPL::Operator::WriteE0 ( const Chip chip,
Bit8u  val 
)

Definition at line 499 of file dbopl.cpp.


Member Data Documentation

Definition at line 149 of file dbopl.h.


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


Generated on Sat Jan 12 2019 05:04:59 for ResidualVM by doxygen 1.7.1
curved edge   curved edge