summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/gaelco.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/gaelco.h
parente92ac9e0fa8e99869894bea00589bbb526be30aa (diff)
Move all devices into separate part of src tree (nw)
Diffstat (limited to 'src/emu/sound/gaelco.h')
-rw-r--r--src/emu/sound/gaelco.h98
1 files changed, 0 insertions, 98 deletions
diff --git a/src/emu/sound/gaelco.h b/src/emu/sound/gaelco.h
deleted file mode 100644
index 25b8cb129d2..00000000000
--- a/src/emu/sound/gaelco.h
+++ /dev/null
@@ -1,98 +0,0 @@
-// license:BSD-3-Clause
-// copyright-holders:Manuel Abadia
-#pragma once
-
-#ifndef __GAELCO_SND_H__
-#define __GAELCO_SND_H__
-
-#define GAELCO_NUM_CHANNELS 0x07
-#define GAELCO_VOLUME_LEVELS 0x10
-
-
-//**************************************************************************
-// INTERFACE CONFIGURATION MACROS
-//**************************************************************************
-
-#define MCFG_GAELCO_SND_DATA(_tag) \
- gaelco_gae1_device::set_snd_data_tag(*device, _tag);
-
-#define MCFG_GAELCO_BANKS(_offs1, _offs2, _offs3, _offs4) \
- gaelco_gae1_device::set_bank_offsets(*device, _offs1, _offs2, _offs3, _offs4);
-
-
-//**************************************************************************
-// TYPE DEFINITIONS
-//**************************************************************************
-
-// ======================> Sound Channel
-
-struct gaelco_sound_channel
-{
- int active; // is it playing?
- int loop; // = 0 no looping, = 1 looping
- int chunkNum; // current chunk if looping
-};
-
-
-// ======================> gaelco_gae1_device
-
-class gaelco_gae1_device : public device_t,
- public device_sound_interface
-{
-public:
- gaelco_gae1_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
- gaelco_gae1_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock, const char *shortname, const char *source);
- ~gaelco_gae1_device() { }
-
- static void set_snd_data_tag(device_t &device, const char *tag) { downcast<gaelco_gae1_device &>(device).m_data_tag = tag; }
- static void set_bank_offsets(device_t &device, int offs1, int offs2, int offs3, int offs4)
- {
- gaelco_gae1_device &dev = downcast<gaelco_gae1_device &>(device);
- dev.m_banks[0] = offs1;
- dev.m_banks[1] = offs2;
- dev.m_banks[2] = offs3;
- dev.m_banks[3] = offs4;
- }
-
-protected:
- // device-level overrides
- virtual void device_start();
- virtual void device_stop();
-
- // sound stream update overrides
- virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples);
-
-public:
- DECLARE_WRITE16_MEMBER( gaelcosnd_w );
- DECLARE_READ16_MEMBER( gaelcosnd_r );
-
-private:
- sound_stream *m_stream; /* our stream */
- UINT8 *m_snd_data; /* PCM data */
- int m_banks[4]; /* start of each ROM bank */
- gaelco_sound_channel m_channel[GAELCO_NUM_CHANNELS]; /* 7 stereo channels */
-
- const char *m_data_tag;
-
- UINT16 m_sndregs[0x38];
-
- // Table for converting from 8 to 16 bits with volume control
- INT16 m_volume_table[GAELCO_VOLUME_LEVELS][256];
-};
-
-extern const device_type GAELCO_GAE1;
-
-
-
-// ======================> gaelco_cg1v_device
-
-class gaelco_cg1v_device : public gaelco_gae1_device
-{
-public:
- gaelco_cg1v_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
-};
-
-extern const device_type GAELCO_CG1V;
-
-
-#endif /* __GAELCO_SND_H__ */