openMSX
Public Member Functions | List of all members
openmsx::YMF278::Impl Class Referencefinal
Inheritance diagram for openmsx::YMF278::Impl:
Inheritance graph
[legend]
Collaboration diagram for openmsx::YMF278::Impl:
Collaboration graph
[legend]

Public Member Functions

 Impl (YMF278 &self, const std::string &name, int ramSize, const DeviceConfig &config)
 
 ~Impl ()
 
void clearRam ()
 
void reset (EmuTime::param time)
 
void writeReg (byte reg, byte data, EmuTime::param time)
 
byte readReg (byte reg)
 
byte peekReg (byte reg) const
 
byte readMem (unsigned address) const
 
void writeMem (unsigned address, byte value)
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 
- Public Member Functions inherited from openmsx::ResampledSoundDevice
bool generateInput (int *buffer, unsigned num)
 Note: To enable various optimizations (like SSE), this method is allowed to generate up to 3 extra sample. More...
 
- Public Member Functions inherited from openmsx::SoundDevice
const std::string & getName () const
 Get the unique name that identifies this sound device. More...
 
const std::string & getDescription () const
 Gets a description of this sound device, to be presented to the user. More...
 
bool isStereo () const
 Is this a stereo device? This is set in the constructor and cannot be changed anymore. More...
 
virtual int getAmplificationFactor () const
 Get extra amplification factor for this device. More...
 
void recordChannel (unsigned channel, const Filename &filename)
 
void muteChannel (unsigned channel, bool muted)
 

Additional Inherited Members

- Public Types inherited from openmsx::ResampledSoundDevice
enum  ResampleType { RESAMPLE_HQ, RESAMPLE_LQ, RESAMPLE_BLIP }
 
- Static Public Attributes inherited from openmsx::SoundDevice
static const unsigned MAX_CHANNELS = 24
 
- Protected Member Functions inherited from openmsx::ResampledSoundDevice
 ResampledSoundDevice (MSXMotherBoard &motherBoard, string_ref name, string_ref description, unsigned channels, bool stereo=false)
 
 ~ResampledSoundDevice ()
 
void setOutputRate (unsigned sampleRate) override
 When a SoundDevice registers itself with the Mixer, the Mixer sets the required sampleRate through this method. More...
 
bool updateBuffer (unsigned length, int *buffer, EmuTime::param time) override
 Generate sample data. More...
 
void update (const Setting &setting) override
 
void createResampler ()
 
- Protected Member Functions inherited from openmsx::SoundDevice
 SoundDevice (MSXMixer &mixer, string_ref name, string_ref description, unsigned numChannels, bool stereo=false)
 Constructor. More...
 
 ~SoundDevice ()
 
void registerSound (const DeviceConfig &config)
 Registers this sound device with the Mixer. More...
 
void unregisterSound ()
 Unregisters this sound device with the Mixer. More...
 
void updateStream (EmuTime::param time)
 
void setInputRate (unsigned sampleRate)
 
unsigned getInputRate () const
 
bool mixChannels (int *dataOut, unsigned num)
 Calls generateChannels() and combines the output to a single channel. More...
 
const DynamicClockgetHostSampleClock () const
 See MSXMixer::getHostSampleClock(). More...
 
double getEffectiveSpeed () const
 
- Protected Member Functions inherited from openmsx::Observer< Setting >
 ~Observer ()
 
virtual void subjectDeleted (const Setting &)
 

Detailed Description

Definition at line 104 of file YMF278.cc.

Constructor & Destructor Documentation

openmsx::YMF278::Impl::Impl ( YMF278 self,
const std::string &  name,
int  ramSize,
const DeviceConfig config 
)
openmsx::YMF278::Impl::~Impl ( )

Definition at line 916 of file YMF278.cc.

Member Function Documentation

void openmsx::YMF278::Impl::clearRam ( )

Definition at line 921 of file YMF278.cc.

byte openmsx::YMF278::Impl::peekReg ( byte  reg) const

Definition at line 846 of file YMF278.cc.

References openmsx::YMF278::readMem().

byte openmsx::YMF278::Impl::readMem ( unsigned  address) const

Definition at line 1035 of file YMF278.cc.

byte openmsx::YMF278::Impl::readReg ( byte  reg)

Definition at line 831 of file YMF278.cc.

References openmsx::YMF278::peekReg().

void openmsx::YMF278::Impl::reset ( EmuTime::param  time)

Definition at line 926 of file YMF278.cc.

Referenced by Impl().

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

Definition at line 1146 of file YMF278.cc.

void openmsx::YMF278::Impl::writeMem ( unsigned  address,
byte  value 
)

Definition at line 1053 of file YMF278.cc.

void openmsx::YMF278::Impl::writeReg ( byte  reg,
byte  data,
EmuTime::param  time 
)

Definition at line 646 of file YMF278.cc.


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