diff options
Diffstat (limited to 'src/mame/audio/tvc.h')
-rw-r--r-- | src/mame/audio/tvc.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/src/mame/audio/tvc.h b/src/mame/audio/tvc.h deleted file mode 100644 index b8699ea0ecd..00000000000 --- a/src/mame/audio/tvc.h +++ /dev/null @@ -1,56 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Sandro Ronco -/***************************************************************************** - * - * includes/tvc.h - * - ****************************************************************************/ - -#ifndef MAME_AUDIO_TVC_H -#define MAME_AUDIO_TVC_H - -#pragma once - - -//************************************************************************** -// TYPE DEFINITIONS -//************************************************************************** - -// ======================> tvc_sound_device - -class tvc_sound_device : public device_t, public device_sound_interface -{ -public: - // construction/destruction - tvc_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - - auto sndint_wr_callback() { return m_write_sndint.bind(); } - - DECLARE_WRITE8_MEMBER(write); - void reset_divider(); - -protected: - // device-level overrides - virtual void device_start() override; - virtual void device_reset() override; - virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override; - virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override; - -private: - static const device_timer_id TIMER_SNDINT = 0; - - sound_stream * m_stream; - int m_freq; - int m_enabled; - int m_volume; - int m_incr; - int m_signal; - uint8_t m_ports[3]; - emu_timer * m_sndint_timer; - devcb_write_line m_write_sndint; -}; - -// device type definition -DECLARE_DEVICE_TYPE(TVC_SOUND, tvc_sound_device) - -#endif // MAME_AUDIO_TVC_H |