20 YMF278(
const std::string& name,
int ramSize,
24 void reset(EmuTime::param time);
25 void writeReg(
byte reg,
byte data, EmuTime::param time);
26 [[nodiscard]]
byte readReg(
byte reg);
27 [[nodiscard]]
byte peekReg(
byte reg)
const;
29 [[nodiscard]]
byte readMem(
unsigned address)
const;
30 void writeMem(
unsigned address,
byte value);
34 template<
typename Archive>
35 void serialize(Archive& ar,
unsigned version);
42 [[nodiscard]]
int compute_rate(
int val)
const;
43 [[nodiscard]]
int compute_decay_rate(
int val)
const;
44 [[nodiscard]]
unsigned decay_rate(
int num,
int sample_rate);
45 void envelope_next(
int sample_rate);
46 [[nodiscard]] int16_t compute_vib()
const;
47 [[nodiscard]] uint16_t compute_am()
const;
49 template<
typename Archive>
50 void serialize(Archive& ar,
unsigned version);
90 void generateChannels(
float** bufs,
unsigned num)
override;
92 void writeRegDirect(
byte reg,
byte data, EmuTime::param time);
93 [[nodiscard]]
unsigned getRamAddress(
unsigned addr)
const;
94 [[nodiscard]] int16_t getSample(Slot& slot, uint16_t pos)
const;
95 [[nodiscard]]
static uint16_t nextPos(Slot& slot, uint16_t pos, uint16_t increment);
97 [[nodiscard]]
bool anyActive();
98 void keyOnHelper(Slot& slot);
103 DebugRegisters(
MSXMotherBoard& motherBoard,
const std::string& name);
104 [[nodiscard]]
byte read(
unsigned address)
override;
105 void write(
unsigned address,
byte value, EmuTime::param time)
override;
109 DebugMemory(
MSXMotherBoard& motherBoard,
const std::string& name);
110 [[nodiscard]]
byte read(
unsigned address)
override;
111 void write(
unsigned address,
byte value)
override;
byte readMem(unsigned address) const
void writeReg(byte reg, byte data, EmuTime::param time)
void setMixLevel(uint8_t x, EmuTime::param time)
YMF278(const std::string &name, int ramSize, const DeviceConfig &config)
void writeMem(unsigned address, byte value)
void reset(EmuTime::param time)
byte peekReg(byte reg) const
void serialize(Archive &ar, unsigned version)
This file implemented 3 utility functions:
SERIALIZE_CLASS_VERSION(CassettePlayer, 2)
constexpr KeyMatrixPosition x
Keyboard bindings.