diff options
Diffstat (limited to 'src/emu/sound/es5503.h')
-rw-r--r-- | src/emu/sound/es5503.h | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/src/emu/sound/es5503.h b/src/emu/sound/es5503.h index 65f644dfedc..eb20a433505 100644 --- a/src/emu/sound/es5503.h +++ b/src/emu/sound/es5503.h @@ -5,7 +5,7 @@ // channels must be a power of two -#define MCFG_ES5503_ADD(_tag, _clock, _channels, _irqf, _adcf) \ +#define MCFG_ES5503_ADD(_tag, _clock, _channels, _irqf, _adcf) \ MCFG_DEVICE_ADD(_tag, ES5503, _clock) \ MCFG_ES5503_OUTPUT_CHANNELS(_channels) \ MCFG_ES5503_IRQ_FUNC(_irqf) \ @@ -29,21 +29,21 @@ // ======================> es5503_device class es5503_device : public device_t, - public device_sound_interface, - public device_memory_interface + public device_sound_interface, + public device_memory_interface { public: - // construction/destruction + // construction/destruction es5503_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock); static void static_set_channels(device_t &device, int channels); - static void static_set_irqf(device_t &device, void (*irqf)(device_t *device, int state)); - static void static_set_adcf(device_t &device, UINT8 (*adcf)(device_t *device)); + static void static_set_irqf(device_t &device, void (*irqf)(device_t *device, int state)); + static void static_set_adcf(device_t &device, UINT8 (*adcf)(device_t *device)); DECLARE_READ8_MEMBER(read); DECLARE_WRITE8_MEMBER(write); - UINT8 get_channel_strobe() { return m_channel_strobe; } + UINT8 get_channel_strobe() { return m_channel_strobe; } sound_stream *m_stream; @@ -51,9 +51,9 @@ protected: // device-level overrides virtual void device_start(); virtual void device_reset(); - virtual void device_timer(emu_timer &timer, device_timer_id tid, int param, void *ptr); + virtual void device_timer(emu_timer &timer, device_timer_id tid, int param, void *ptr); - // device_sound_interface overrides + // device_sound_interface overrides virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples); // device_memory_interface overrides @@ -67,44 +67,44 @@ protected: emu_timer *m_sync_timer; private: - enum - { - MODE_FREE = 0, - MODE_ONESHOT = 1, - MODE_SYNCAM = 2, - MODE_SWAP = 3 - }; - - struct ES5503Osc - { - UINT16 freq; - UINT16 wtsize; - UINT8 control; - UINT8 vol; - UINT8 data; - UINT32 wavetblpointer; - UINT8 wavetblsize; - UINT8 resolution; - - UINT32 accumulator; - UINT8 irqpend; - }; + enum + { + MODE_FREE = 0, + MODE_ONESHOT = 1, + MODE_SYNCAM = 2, + MODE_SWAP = 3 + }; + + struct ES5503Osc + { + UINT16 freq; + UINT16 wtsize; + UINT8 control; + UINT8 vol; + UINT8 data; + UINT32 wavetblpointer; + UINT8 wavetblsize; + UINT8 resolution; + + UINT32 accumulator; + UINT8 irqpend; + }; ES5503Osc oscillators[32]; - INT8 oscsenabled; // # of oscillators enabled - int rege0; // contents of register 0xe0 + INT8 oscsenabled; // # of oscillators enabled + int rege0; // contents of register 0xe0 - UINT8 m_channel_strobe; + UINT8 m_channel_strobe; int output_channels; - UINT32 output_rate; + UINT32 output_rate; - emu_timer *m_timer; + emu_timer *m_timer; - direct_read_data *m_direct; + direct_read_data *m_direct; - void halt_osc(int onum, int type, UINT32 *accumulator, int resshift); + void halt_osc(int onum, int type, UINT32 *accumulator, int resshift); }; |