openMSX
Classes | Public Member Functions | List of all members
openmsx::Y8950Adpcm Class Referencefinal

#include <Y8950Adpcm.hh>

Inheritance diagram for openmsx::Y8950Adpcm:
Inheritance graph
[legend]
Collaboration diagram for openmsx::Y8950Adpcm:
Collaboration graph
[legend]

Public Member Functions

 Y8950Adpcm (Y8950 &y8950, const DeviceConfig &config, const std::string &name, unsigned sampleRam)
 
 ~Y8950Adpcm ()
 
void clearRam ()
 
void reset (EmuTime::param time)
 
bool isMuted () const
 
void writeReg (byte rg, byte data, EmuTime::param time)
 
byte readReg (byte rg, EmuTime::param time)
 
byte peekReg (byte rg, EmuTime::param time)
 
int calcSample ()
 
void sync (EmuTime::param time)
 
void resetStatus ()
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::Schedulable
virtual void schedulerDeleted ()
 Just before the the Scheduler is deleted, it calls this method of all the Schedulables that are still registered. More...
 
SchedulergetScheduler () const
 
EmuTime::param getCurrentTime () const
 Convenience method: This is the same as getScheduler().getCurrentTime(). More...
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Additional Inherited Members

- Static Public Member Functions inherited from openmsx::Schedulable
template<typename Archive >
static std::vector< SyncPointBWserializeBW (Archive &ar)
 
template<typename Archive >
static void restoreOld (Archive &ar, std::vector< Schedulable * > schedulables)
 
- Protected Member Functions inherited from openmsx::Schedulable
 Schedulable (Scheduler &scheduler)
 
 ~Schedulable ()
 
void setSyncPoint (EmuTime::param timestamp)
 
bool removeSyncPoint ()
 
void removeSyncPoints ()
 
bool pendingSyncPoint () const
 
bool pendingSyncPoint (EmuTime &result) const
 

Detailed Description

Definition at line 15 of file Y8950Adpcm.hh.

Constructor & Destructor Documentation

openmsx::Y8950Adpcm::Y8950Adpcm ( Y8950 y8950,
const DeviceConfig config,
const std::string &  name,
unsigned  sampleRam 
)

Definition at line 45 of file Y8950Adpcm.cc.

References clearRam().

openmsx::Y8950Adpcm::~Y8950Adpcm ( )

Definition at line 56 of file Y8950Adpcm.cc.

Member Function Documentation

int openmsx::Y8950Adpcm::calcSample ( )

Definition at line 423 of file Y8950Adpcm.cc.

Referenced by sync().

void openmsx::Y8950Adpcm::clearRam ( )

Definition at line 60 of file Y8950Adpcm.cc.

References openmsx::Ram::clear().

Referenced by Y8950Adpcm().

bool openmsx::Y8950Adpcm::isMuted ( ) const

Definition at line 91 of file Y8950Adpcm.cc.

byte openmsx::Y8950Adpcm::peekReg ( byte  rg,
EmuTime::param  time 
)

Definition at line 302 of file Y8950Adpcm.cc.

References sync().

Referenced by readReg().

byte openmsx::Y8950Adpcm::readReg ( byte  rg,
EmuTime::param  time 
)

Definition at line 293 of file Y8950Adpcm.cc.

References peekReg(), and sync().

void openmsx::Y8950Adpcm::reset ( EmuTime::param  time)
void openmsx::Y8950Adpcm::resetStatus ( )

Definition at line 325 of file Y8950Adpcm.cc.

References openmsx::Y8950::setStatus(), and openmsx::Y8950::STATUS_BUF_RDY.

template<typename Archive >
void openmsx::Y8950Adpcm::serialize ( Archive &  ar,
unsigned  version 
)
void openmsx::Y8950Adpcm::sync ( EmuTime::param  time)

Definition at line 108 of file Y8950Adpcm.cc.

References calcSample().

Referenced by peekReg(), readReg(), and writeReg().

void openmsx::Y8950Adpcm::writeReg ( byte  rg,
byte  data,
EmuTime::param  time 
)

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