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)
 
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) const
 
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
 Schedulable (const Schedulable &)=delete
 
Schedulableoperator= (const Schedulable &)=delete
 
virtual void executeUntil (EmuTime::param time)=0
 When the previously registered syncPoint is reached, this method gets called. More...
 
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

◆ Y8950Adpcm()

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

Definition at line 49 of file Y8950Adpcm.cc.

References clearRam().

Member Function Documentation

◆ calcSample()

int openmsx::Y8950Adpcm::calcSample ( )

Definition at line 432 of file Y8950Adpcm.cc.

References calcSample().

Referenced by calcSample(), and sync().

◆ clearRam()

void openmsx::Y8950Adpcm::clearRam ( )

Definition at line 59 of file Y8950Adpcm.cc.

References openmsx::TrackedRam::clear().

Referenced by openmsx::Y8950::clearRam(), and Y8950Adpcm().

◆ isMuted()

bool openmsx::Y8950Adpcm::isMuted ( ) const

Definition at line 90 of file Y8950Adpcm.cc.

◆ peekReg()

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

Definition at line 311 of file Y8950Adpcm.cc.

References peekReg(), and sync().

Referenced by peekReg(), openmsx::Y8950::peekReg(), and readReg().

◆ readReg()

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

Definition at line 302 of file Y8950Adpcm.cc.

References peekReg(), and sync().

Referenced by openmsx::Y8950::readReg().

◆ reset()

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

◆ resetStatus()

void openmsx::Y8950Adpcm::resetStatus ( )

Definition at line 334 of file Y8950Adpcm.cc.

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

Referenced by openmsx::Y8950::writeReg().

◆ serialize()

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

◆ sync()

void openmsx::Y8950Adpcm::sync ( EmuTime::param  time)

◆ writeReg()

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

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