diff options
author | 2014-10-11 15:49:56 +0000 | |
---|---|---|
committer | 2014-10-11 15:49:56 +0000 | |
commit | b9ba2fc331cf0c1909659afa2b5e93d9cc34ad91 (patch) | |
tree | debdfe0bf60b076aa0c07caf5ba06887217087a2 /src/mess/includes/dai.h | |
parent | b67e8155b68e3f6346d4419960dca7a274ac298d (diff) |
given to another couple of sound devices their own include. nw.
Diffstat (limited to 'src/mess/includes/dai.h')
-rw-r--r-- | src/mess/includes/dai.h | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/src/mess/includes/dai.h b/src/mess/includes/dai.h index 80de0fbb5d6..0898d1b2c9f 100644 --- a/src/mess/includes/dai.h +++ b/src/mess/includes/dai.h @@ -8,6 +8,7 @@ #define DAI_H_ #include "cpu/i8085/i8085.h" +#include "audio/dai_snd.h" #include "machine/i8255.h" #include "machine/pit8253.h" #include "machine/ram.h" @@ -16,38 +17,6 @@ #include "sound/wave.h" -// ======================> dai_sound_device - -class dai_sound_device : public device_t, - public device_sound_interface -{ -public: - // construction/destruction - dai_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); - - DECLARE_WRITE_LINE_MEMBER(set_input_ch0); - DECLARE_WRITE_LINE_MEMBER(set_input_ch1); - DECLARE_WRITE_LINE_MEMBER(set_input_ch2); - DECLARE_WRITE8_MEMBER(set_volume); - -protected: - // device-level overrides - virtual void device_start(); - virtual void device_reset(); - virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples); - -private: - sound_stream * m_mixer_channel; - int m_dai_input[3]; - UINT8 m_osc_volume[3]; - UINT8 m_noise_volume; - - static const UINT16 s_osc_volume_table[]; - static const UINT16 s_noise_volume_table[]; -}; - - - class dai_state : public driver_device { public: @@ -107,8 +76,4 @@ protected: extern const unsigned char dai_palette[16*3]; -/*----------- defined in audio/dai.c -----------*/ - -extern const device_type DAI_SOUND; - #endif /* DAI_H_ */ |