summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/gaelco.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/gaelco.h')
-rw-r--r--src/devices/sound/gaelco.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/devices/sound/gaelco.h b/src/devices/sound/gaelco.h
index 5d26292d086..3bfac39f988 100644
--- a/src/devices/sound/gaelco.h
+++ b/src/devices/sound/gaelco.h
@@ -5,6 +5,8 @@
#pragma once
+#include "dirom.h"
+
//**************************************************************************
// TYPE DEFINITIONS
@@ -14,7 +16,7 @@
class gaelco_gae1_device : public device_t,
public device_sound_interface,
- public device_rom_interface
+ public device_rom_interface<27> // Unknown address bits
{
public:
gaelco_gae1_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
@@ -27,23 +29,24 @@ public:
m_banks[3] = offs4;
}
- DECLARE_WRITE16_MEMBER( gaelcosnd_w );
- DECLARE_READ16_MEMBER( gaelcosnd_r );
+ void gaelcosnd_w(offs_t offset, uint16_t data, uint16_t mem_mask = ~0);
+ uint16_t gaelcosnd_r(offs_t offset);
protected:
gaelco_gae1_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock);
// device-level overrides
virtual void device_start() override;
+ virtual void device_reset() override;
virtual void device_stop() override;
virtual void device_post_load() override;
virtual void device_clock_changed() override;
// sound stream update overrides
- virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override;
+ virtual void sound_stream_update(sound_stream &stream, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) override;
// device_rom_interface overrides
- virtual void rom_bank_updated() override;
+ virtual void rom_bank_pre_change() override;
private:
static constexpr int NUM_CHANNELS = 0x07;
@@ -57,13 +60,16 @@ private:
};
sound_stream *m_stream; /* our stream */
- int m_banks[4]; /* start of each ROM bank */
- sound_channel m_channel[NUM_CHANNELS]; /* 7 stereo channels */
+ // live
+ sound_channel m_channel[NUM_CHANNELS]; /* 7 stereo channels */
uint16_t m_sndregs[0x38];
// Table for converting from 8 to 16 bits with volume control
int16_t m_volume_table[VOLUME_LEVELS][256];
+
+ // config
+ int m_banks[4]; /* start of each ROM bank */
};
DECLARE_DEVICE_TYPE(GAELCO_GAE1, gaelco_gae1_device)