summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/ymz770.h
diff options
context:
space:
mode:
author MetalliC <0vetal0@gmail.com>2017-12-14 16:16:11 +0200
committer MetalliC <0vetal0@gmail.com>2017-12-14 16:16:11 +0200
commit8b9246599a837d4f40cc47ceb73ecbdcc87cd2bb (patch)
treeb997e5c5c90886316b91b62d21fec40189aa379c /src/devices/sound/ymz770.h
parent9c022b9ff7e03c3848a47e301f73a2d09c10966f (diff)
ymz774: when SQC stopped stop SEQ too, make SEQ/SQC save state-friendly, cleanups
Diffstat (limited to 'src/devices/sound/ymz770.h')
-rw-r--r--src/devices/sound/ymz770.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/devices/sound/ymz770.h b/src/devices/sound/ymz770.h
index 6723ac2bf1c..9fb38946dea 100644
--- a/src/devices/sound/ymz770.h
+++ b/src/devices/sound/ymz770.h
@@ -55,6 +55,7 @@ protected:
virtual uint32_t get_phrase_offs(int phrase) { return m_rom[(4 * phrase) + 1] << 16 | m_rom[(4 * phrase) + 2] << 8 | m_rom[(4 * phrase) + 3]; };
virtual uint32_t get_seq_offs(int sqn) { return m_rom[(4 * sqn) + 1 + 0x400] << 16 | m_rom[(4 * sqn) + 2 + 0x400] << 8 | m_rom[(4 * sqn) + 3 + 0x400]; };
virtual void sequencer();
+ uint8_t get_rom_byte(uint32_t offset) { return m_rom[offset % m_rom.bytes()]; }; // need optimise or its good as is ?
ymz770_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint32_t sclock);
@@ -100,7 +101,7 @@ protected:
uint16_t timer;
uint16_t stopchan;
uint8_t loop;
- uint8_t *data;
+ uint32_t offset;
uint8_t bank;
bool is_playing;
};
@@ -108,7 +109,7 @@ protected:
{
uint8_t sqc;
uint8_t loop;
- uint8_t *data;
+ uint32_t offset;
bool is_playing;
bool is_waiting;
};