diff options
Diffstat (limited to 'trunk/src/emu/sound/tc8830f.h')
-rw-r--r-- | trunk/src/emu/sound/tc8830f.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/trunk/src/emu/sound/tc8830f.h b/trunk/src/emu/sound/tc8830f.h new file mode 100644 index 00000000000..193dfda038b --- /dev/null +++ b/trunk/src/emu/sound/tc8830f.h @@ -0,0 +1,66 @@ +/*************************************************************************** + + tc8830f.h - Toshiba TC8830F, CMOS voice recording/reproducing LSI + +***************************************************************************/ + +#pragma once + +#ifndef __TC8830F_H__ +#define __TC8830F_H__ + + +//************************************************************************** +// INTERFACE CONFIGURATION MACROS +//************************************************************************** + +#define MCFG_TC8830F_ADD(_tag, _clock) \ + MCFG_DEVICE_ADD(_tag, TC8830F, _clock) + +#define MCFG_TC8830F_REPLACE(_tag, _clock) \ + MCFG_DEVICE_REPLACE(_tag, TC8830F, _clock) + + +//************************************************************************** +// TYPE DEFINITIONS +//************************************************************************** + +class tc8830f_device : public device_t, + public device_sound_interface +{ +public: + // construction/destruction + tc8830f_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); + + void reset(); + void write_p(UINT8 data); + + sound_stream *m_stream; + +protected: + // device-level overrides + virtual void device_start(); + virtual void device_post_load(); + virtual void device_clock_changed(); + + virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples); + +private: + bool m_playing; + UINT32 m_address; + UINT32 m_stop_address; + UINT8 m_bitcount; + UINT8 m_bitrate; + UINT8 m_command; + int m_cmd_rw; + UINT8 m_phrase; + + UINT8 *m_mem_base; + UINT32 m_mem_mask; +}; + + +// device type definition +extern const device_type TC8830F; + +#endif /* __TC8830F_H__ */ |