diff options
Diffstat (limited to 'src/mame/audio/tiamc1.h')
-rw-r--r-- | src/mame/audio/tiamc1.h | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/src/mame/audio/tiamc1.h b/src/mame/audio/tiamc1.h deleted file mode 100644 index 638d6caefc4..00000000000 --- a/src/mame/audio/tiamc1.h +++ /dev/null @@ -1,67 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Eugene Sandulenko -#ifndef MAME_AUDIO_TIAMC1_H -#define MAME_AUDIO_TIAMC1_H - -#pragma once - -//************************************************************************** -// TYPE DEFINITIONS -//************************************************************************** - -// ======================> tiamc1_sound_device - -class tiamc1_sound_device : public device_t, public device_sound_interface -{ -public: - tiamc1_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - - DECLARE_WRITE8_MEMBER( tiamc1_timer0_w ); - DECLARE_WRITE8_MEMBER( tiamc1_timer1_w ); - DECLARE_WRITE8_MEMBER( tiamc1_timer1_gate_w ); - -protected: - // device-level overrides - virtual void device_start() override; - - // sound stream update overrides - virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override; - -private: - struct timer8253chan - { - timer8253chan() { } - - uint16_t count = 0; - uint16_t cnval = 0; - uint8_t bcdMode = 0; - uint8_t cntMode = 0; - uint8_t valMode = 0; - uint8_t gate = 0; - uint8_t output = 0; - uint8_t loadCnt = 0; - uint8_t enable = 0; - }; - - struct timer8253struct - { - struct timer8253chan channel[3]; - }; - - - void timer8253_reset(struct timer8253struct *t); - void timer8253_tick(struct timer8253struct *t,int chn); - void timer8253_wr(struct timer8253struct *t, int reg, uint8_t val); - char timer8253_get_output(struct timer8253struct *t, int chn); - void timer8253_set_gate(struct timer8253struct *t, int chn, uint8_t gate); - - sound_stream *m_channel; - int m_timer1_divider; - - timer8253struct m_timer0; - timer8253struct m_timer1; -}; - -DECLARE_DEVICE_TYPE(TIAMC1, tiamc1_sound_device) - -#endif // MAME_AUDIO_TIAMC1_H |