summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/t6721a.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-11-08 12:56:12 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-11-08 12:56:12 +0100
commit7c19aac60e12d6f5ea301bdb34d7826a01e0b06f (patch)
treef310d86aa2c6bfc19d115307dedde4eb0cd52dad /src/devices/sound/t6721a.cpp
parenta57b46ae933badd7441ce1644711dbb851e2b504 (diff)
Rename *.c -> *.cpp in our source (nw)
Diffstat (limited to 'src/devices/sound/t6721a.cpp')
-rw-r--r--src/devices/sound/t6721a.cpp112
1 files changed, 112 insertions, 0 deletions
diff --git a/src/devices/sound/t6721a.cpp b/src/devices/sound/t6721a.cpp
new file mode 100644
index 00000000000..2cc9828f407
--- /dev/null
+++ b/src/devices/sound/t6721a.cpp
@@ -0,0 +1,112 @@
+// license:BSD-3-Clause
+// copyright-holders:Curt Coder
+/**********************************************************************
+
+ Toshiba T6721A C2MOS Voice Synthesizing LSI emulation
+
+**********************************************************************/
+
+#include "t6721a.h"
+
+
+
+//**************************************************************************
+// MACROS / CONSTANTS
+//**************************************************************************
+
+#define LOG 0
+
+
+
+//**************************************************************************
+// DEVICE DEFINITIONS
+//**************************************************************************
+
+// device type definition
+const device_type T6721A = &device_creator<t6721a_device>;
+
+
+
+//**************************************************************************
+// LIVE DEVICE
+//**************************************************************************
+
+//-------------------------------------------------
+// t6721a_device - constructor
+//-------------------------------------------------
+
+t6721a_device::t6721a_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+ : device_t(mconfig, T6721A, "T6721A", tag, owner, clock, "t6721a", __FILE__),
+ device_sound_interface(mconfig, *this),
+ m_write_eos(*this),
+ m_write_phi2(*this),
+ m_write_dtrd(*this),
+ m_write_apd(*this),
+ m_stream(NULL)
+{
+}
+
+
+//-------------------------------------------------
+// device_start - device-specific startup
+//-------------------------------------------------
+
+void t6721a_device::device_start()
+{
+ // resolve callbacks
+ m_write_eos.resolve_safe();
+ m_write_phi2.resolve_safe();
+ m_write_dtrd.resolve_safe();
+ m_write_apd.resolve_safe();
+
+ // create sound stream
+ m_stream = machine().sound().stream_alloc(*this, 0, 1, machine().sample_rate());
+}
+
+
+//-------------------------------------------------
+// sound_stream_update - handle update requests for
+// our sound stream
+//-------------------------------------------------
+
+void t6721a_device::sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples)
+{
+}
+
+
+//-------------------------------------------------
+// read -
+//-------------------------------------------------
+
+READ8_MEMBER( t6721a_device::read )
+{
+ return 0;
+}
+
+
+//-------------------------------------------------
+// write -
+//-------------------------------------------------
+
+WRITE8_MEMBER( t6721a_device::write )
+{
+}
+
+
+//-------------------------------------------------
+// di_w - data input write
+//-------------------------------------------------
+
+WRITE_LINE_MEMBER( t6721a_device::di_w )
+{
+}
+
+
+//-------------------------------------------------
+// eos_r - eos read
+//-------------------------------------------------
+
+READ_LINE_MEMBER( t6721a_device::eos_r )
+{
+ return 1;
+}