openMSX
Public Member Functions | Public Attributes | List of all members
openmsx::Y8950Slot Class Reference
Collaboration diagram for openmsx::Y8950Slot:
Collaboration graph
[legend]

Public Member Functions

void reset ()
 
bool isActive () const
 
void slotOn ()
 
void slotOff ()
 
unsigned calc_phase (int lfo_pm)
 
unsigned calc_envelope (int lfo_am)
 
int calc_slot_car (int lfo_pm, int lfo_am, int fm)
 
int calc_slot_mod (int lfo_pm, int lfo_am)
 
int calc_slot_tom (int lfo_pm, int lfo_am)
 
int calc_slot_snare (int lfo_pm, int lfo_am, int whitenoise)
 
int calc_slot_cym (int lfo_am, int a, int b)
 
int calc_slot_hat (int lfo_am, int a, int b, int whitenoise)
 
void updateAll (unsigned freq)
 
void updatePG (unsigned freq)
 
void updateTLL (unsigned freq)
 
void updateRKS (unsigned freq)
 
void updateEG ()
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Public Attributes

int feedback
 
int output
 
unsigned phase
 
unsigned dphase
 
EnvPhaseIndexdphaseARTableRks
 
EnvPhaseIndexdphaseDRTableRks
 
int tll
 
int eg_mode
 
EnvPhaseIndex eg_phase
 
EnvPhaseIndex eg_dphase
 
Y8950Patch patch
 
bool slotStatus
 

Detailed Description

Definition at line 77 of file Y8950.cc.

Member Function Documentation

unsigned openmsx::Y8950Slot::calc_envelope ( int  lfo_am)
inline
unsigned openmsx::Y8950Slot::calc_phase ( int  lfo_pm)
inline

Definition at line 818 of file Y8950.cc.

int openmsx::Y8950Slot::calc_slot_car ( int  lfo_pm,
int  lfo_am,
int  fm 
)
inline

Definition at line 890 of file Y8950.cc.

int openmsx::Y8950Slot::calc_slot_cym ( int  lfo_am,
int  a,
int  b 
)
inline

Definition at line 926 of file Y8950.cc.

int openmsx::Y8950Slot::calc_slot_hat ( int  lfo_am,
int  a,
int  b,
int  whitenoise 
)
inline

Definition at line 933 of file Y8950.cc.

int openmsx::Y8950Slot::calc_slot_mod ( int  lfo_pm,
int  lfo_am 
)
inline

Definition at line 897 of file Y8950.cc.

int openmsx::Y8950Slot::calc_slot_snare ( int  lfo_pm,
int  lfo_am,
int  whitenoise 
)
inline

Definition at line 918 of file Y8950.cc.

int openmsx::Y8950Slot::calc_slot_tom ( int  lfo_pm,
int  lfo_am 
)
inline

Definition at line 911 of file Y8950.cc.

bool openmsx::Y8950Slot::isActive ( ) const
inline

Definition at line 618 of file Y8950.cc.

References eg_mode, and openmsx::FINISH.

void openmsx::Y8950Slot::reset ( )
template<typename Archive >
void openmsx::Y8950Slot::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 1425 of file Y8950.cc.

void openmsx::Y8950Slot::slotOff ( )
inline
void openmsx::Y8950Slot::slotOn ( )
inline
void openmsx::Y8950Slot::updateAll ( unsigned  freq)
inline

Definition at line 610 of file Y8950.cc.

References updateEG(), updatePG(), updateRKS(), and updateTLL().

Referenced by reset(), and openmsx::Y8950::Impl::writeReg().

void openmsx::Y8950Slot::updateEG ( )
inline
void openmsx::Y8950Slot::updatePG ( unsigned  freq)
inline

Definition at line 563 of file Y8950.cc.

References dphase, openmsx::Y8950Patch::ML, and patch.

Referenced by updateAll().

void openmsx::Y8950Slot::updateRKS ( unsigned  freq)
inline

Definition at line 580 of file Y8950.cc.

References dphaseARTableRks, dphaseDRTableRks, openmsx::Y8950Patch::KR, and patch.

Referenced by updateAll().

void openmsx::Y8950Slot::updateTLL ( unsigned  freq)
inline

Definition at line 575 of file Y8950.cc.

References openmsx::Y8950Patch::KL, patch, openmsx::Y8950Patch::TL, and tll.

Referenced by updateAll().

Member Data Documentation

unsigned openmsx::Y8950Slot::dphase

Definition at line 109 of file Y8950.cc.

Referenced by updatePG().

EnvPhaseIndex* openmsx::Y8950Slot::dphaseARTableRks

Definition at line 112 of file Y8950.cc.

Referenced by updateEG(), and updateRKS().

EnvPhaseIndex* openmsx::Y8950Slot::dphaseDRTableRks

Definition at line 113 of file Y8950.cc.

Referenced by updateEG(), and updateRKS().

EnvPhaseIndex openmsx::Y8950Slot::eg_dphase

Definition at line 117 of file Y8950.cc.

Referenced by updateEG().

int openmsx::Y8950Slot::eg_mode

Definition at line 115 of file Y8950.cc.

Referenced by isActive(), reset(), slotOff(), slotOn(), and updateEG().

EnvPhaseIndex openmsx::Y8950Slot::eg_phase

Definition at line 116 of file Y8950.cc.

Referenced by reset(), slotOff(), and slotOn().

int openmsx::Y8950Slot::feedback

Definition at line 104 of file Y8950.cc.

Referenced by reset().

int openmsx::Y8950Slot::output

Definition at line 105 of file Y8950.cc.

Referenced by reset().

Y8950Patch openmsx::Y8950Slot::patch
unsigned openmsx::Y8950Slot::phase

Definition at line 108 of file Y8950.cc.

Referenced by reset(), and slotOn().

bool openmsx::Y8950Slot::slotStatus

Definition at line 120 of file Y8950.cc.

Referenced by reset(), slotOff(), and slotOn().

int openmsx::Y8950Slot::tll

Definition at line 114 of file Y8950.cc.

Referenced by updateTLL().


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