11 "Playball-DAC",
"Sony Playball's DAC", config,
12 strCat(FileOperations::stripExtension(rom.getFilename()),
'_'),
13 15,
"playball/playball_")
21 reset(EmuTime::dummy());
31 if (address == 0xBFFF) {
32 return samplePlayer.
isPlaying() ? 0xFE : 0xFF;
54 if (address == 0xBFFF) {
55 if ((value <= 14) && !samplePlayer.
isPlaying()) {
56 samplePlayer.
play(value);
70template<
typename Archive>
73 ar.template serializeBase<Rom16kBBlocks>(*
this);
74 ar.serialize(
"SamplePlayer", samplePlayer);
#define REGISTER_MSXDEVICE(CLASS, NAME)
void invalidateDeviceRCache()
static std::array< byte, 0x10000 > unmappedWrite
void setUnmapped(unsigned region)
Select 'unmapped' memory for this region.
byte peekMem(word address, EmuTime::param time) const override
Read a byte from a given memory location.
void setRom(unsigned region, unsigned block)
Selects a block of the ROM image for reading in a certain region.
const byte * getReadCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
byte readMem(word address, EmuTime::param time) override
Read a byte from a location at a certain time from this device.
const byte * getReadCacheLine(word address) const override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for reading.
void writeMem(word address, byte value, EmuTime::param time) override
Write a given byte to a given location at a certain time to this device.
void serialize(Archive &ar, unsigned version)
byte * getWriteCacheLine(word address) override
Test that the memory in the interval [start, start + CacheLine::SIZE) is cacheable for writing.
byte peekMem(word address, EmuTime::param time) const override
Read a byte from a given memory location.
void reset(EmuTime::param time) override
This method is called on reset.
RomPlayBall(const DeviceConfig &config, Rom &&rom)
bool isPlaying() const
Is there currently playing a sample.
void play(unsigned sampleNum)
Start playing a (new) sample.
This file implemented 3 utility functions:
uint16_t word
16 bit unsigned integer
#define INSTANTIATE_SERIALIZE_METHODS(CLASS)