summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/vlm5030.h
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-09-13 08:41:44 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-09-13 08:41:44 +0200
commitf88cefad27a1737c76e09d99c9fb43e173506081 (patch)
tree2d8167d03579c46e226471747eb4407bd00ed6fa /src/emu/sound/vlm5030.h
parente92ac9e0fa8e99869894bea00589bbb526be30aa (diff)
Move all devices into separate part of src tree (nw)
Diffstat (limited to 'src/emu/sound/vlm5030.h')
-rw-r--r--src/emu/sound/vlm5030.h100
1 files changed, 0 insertions, 100 deletions
diff --git a/src/emu/sound/vlm5030.h b/src/emu/sound/vlm5030.h
deleted file mode 100644
index 94a5b846b39..00000000000
--- a/src/emu/sound/vlm5030.h
+++ /dev/null
@@ -1,100 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Tatsuyuki Satoh
-#pragma once
-
-#ifndef __VLM5030_H__
-#define __VLM5030_H__
-
- class vlm5030_device : public device_t,
- public device_sound_interface
- {
- public:
- vlm5030_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
- ~vlm5030_device() {}
-
- /* set speech rom address */
- void set_rom(void *speech_rom);
-
- /* get BSY pin level */
- DECLARE_READ_LINE_MEMBER( bsy );
-
- /* latch contoll data */
- DECLARE_WRITE8_MEMBER( data_w );
-
- /* set RST pin level : reset / set table address A8-A15 */
- DECLARE_WRITE_LINE_MEMBER( rst );
-
- /* set VCU pin level : ?? unknown */
- DECLARE_WRITE_LINE_MEMBER( vcu );
-
- /* set ST pin level : set table address A0-A7 / start speech */
- DECLARE_WRITE_LINE_MEMBER( st );
-
-protected:
- // device-level overrides
- virtual void device_start();
- virtual void device_reset();
-
- // sound stream update overrides
- virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples);
-
-private:
- // internal state
- sound_stream * m_channel;
-
- /* coefficient tables */
- const struct tms5100_coeffs *m_coeff;
-
- /* need to save state */
-
- UINT8 *m_rom;
- int m_address_mask;
- UINT16 m_address;
- UINT8 m_pin_BSY;
- UINT8 m_pin_ST;
- UINT8 m_pin_VCU;
- UINT8 m_pin_RST;
- UINT8 m_latch_data;
- UINT16 m_vcu_addr_h;
- UINT8 m_parameter;
- UINT8 m_phase;
-
- /* state of option paramter */
- int m_frame_size;
- int m_pitch_offset;
- UINT8 m_interp_step;
-
- UINT8 m_interp_count; /* number of interp periods */
- UINT8 m_sample_count; /* sample number within interp */
- UINT8 m_pitch_count;
-
- /* these contain data describing the current and previous voice frames */
- UINT16 m_old_energy;
- UINT8 m_old_pitch;
- INT16 m_old_k[10];
- UINT16 m_target_energy;
- UINT8 m_target_pitch;
- INT16 m_target_k[10];
-
- UINT16 m_new_energy;
- UINT8 m_new_pitch;
- INT16 m_new_k[10];
-
- /* these are all used to contain the current state of the sound generation */
- unsigned int m_current_energy;
- unsigned int m_current_pitch;
- int m_current_k[10];
-
- INT32 m_x[10];
-
- int get_bits(int sbit,int bits);
- int parse_frame();
- void update();
- void setup_parameter(UINT8 param);
- void restore_state();
-};
-
-extern const device_type VLM5030;
-
-
-#endif /* __VLM5030_H__ */