diff options
Diffstat (limited to 'src/devices/sound/amiga.h')
-rw-r--r-- | src/devices/sound/amiga.h | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/src/devices/sound/amiga.h b/src/devices/sound/amiga.h deleted file mode 100644 index b1b89e09cc5..00000000000 --- a/src/devices/sound/amiga.h +++ /dev/null @@ -1,65 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Aaron Giles -/*************************************************************************** - - Amiga audio hardware - -***************************************************************************/ - -#pragma once - -#ifndef __SOUND_AMIGA_H__ -#define __SOUND_AMIGA_H__ - -#include "emu.h" - - -//************************************************************************** -// TYPE DEFINITIONS -//************************************************************************** - -// ======================> amiga_sound_device - -class amiga_sound_device : public device_t, public device_sound_interface -{ -public: - amiga_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - ~amiga_sound_device() {} - - void update(); - void data_w(int which, uint16_t data); - -protected: - // device-level overrides - virtual void device_start() override; - - // sound stream update overrides - virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override; - -private: - static const int CLOCK_DIVIDER = 16; - - struct audio_channel - { - emu_timer *irq_timer; - uint32_t curlocation; - uint16_t curlength; - uint16_t curticks; - uint8_t index; - bool dma_enabled; - bool manualmode; - int8_t latched; - }; - - void dma_reload(audio_channel *chan); - - // internal state - audio_channel m_channel[4]; - sound_stream *m_stream; - - TIMER_CALLBACK_MEMBER( signal_irq ); -}; - -extern const device_type AMIGA; - -#endif // __SOUND_AMIGA_H__ |