summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/gomoku.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/gomoku.h')
-rw-r--r--src/mame/audio/gomoku.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mame/audio/gomoku.h b/src/mame/audio/gomoku.h
index a057282641f..5947bfc40b8 100644
--- a/src/mame/audio/gomoku.h
+++ b/src/mame/audio/gomoku.h
@@ -15,8 +15,8 @@ class gomoku_sound_device : public device_t,
public:
gomoku_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 48'000);
- DECLARE_WRITE8_MEMBER( sound1_w );
- DECLARE_WRITE8_MEMBER( sound2_w );
+ void sound1_w(offs_t offset, uint8_t data);
+ void sound2_w(offs_t offset, uint8_t data);
protected:
// device-level overrides
@@ -28,12 +28,12 @@ protected:
private:
void make_mixer_table(int voices, int gain);
- /* 4 voices max */
+ // 4 voices max
static constexpr unsigned MAX_VOICES = 4;
- struct gomoku_sound_channel
+ struct sound_channel
{
- gomoku_sound_channel() { }
+ sound_channel() { }
int channel = 0;
int frequency = 0;
@@ -43,15 +43,15 @@ private:
};
- /* data about the sound system */
- gomoku_sound_channel m_channel_list[MAX_VOICES];
+ // data about the sound system
+ sound_channel m_channel_list[MAX_VOICES];
- /* global sound parameters */
+ // global sound parameters
required_region_ptr<uint8_t> m_sound_rom;
- int m_sound_enable;
+ bool m_sound_enable;
sound_stream *m_stream;
- /* mixer tables and internal buffers */
+ // mixer tables and internal buffers
std::unique_ptr<int16_t[]> m_mixer_table;
int16_t *m_mixer_lookup;
std::unique_ptr<short[]> m_mixer_buffer;