diff options
Diffstat (limited to 'src/emu/sound/okim6295.h')
-rw-r--r-- | src/emu/sound/okim6295.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/src/emu/sound/okim6295.h b/src/emu/sound/okim6295.h index b0ead224399..86611ecee42 100644 --- a/src/emu/sound/okim6295.h +++ b/src/emu/sound/okim6295.h @@ -56,7 +56,7 @@ class adpcm_state { public: adpcm_state() { compute_tables(); reset(); } - + void reset(); INT16 clock(UINT8 nibble); @@ -75,15 +75,15 @@ private: // ======================> okim6295_device_config -class okim6295_device_config : public device_config, - public device_config_sound_interface, +class okim6295_device_config : public device_config, + public device_config_sound_interface, public device_config_memory_interface { friend class okim6295_device; - + // construction/destruction okim6295_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock); - + public: // allocators static device_config *static_alloc_device_config(const machine_config &mconfig, const char *tag, const device_config *owner, UINT32 clock); @@ -91,7 +91,7 @@ public: // basic information getters virtual const char *name() const { return "OKI6295"; } - + // inline configuration indexes enum { @@ -105,29 +105,29 @@ protected: // internal state const address_space_config m_space_config; - UINT8 m_pin7; + UINT8 m_pin7; }; // ======================> okim6295_device -class okim6295_device : public device_t, +class okim6295_device : public device_t, public device_sound_interface, public device_memory_interface { friend class okim6295_device_config; - + // construction/destruction okim6295_device(running_machine &_machine, const okim6295_device_config &config); public: void set_bank_base(offs_t base); void set_pin7(int pin7); - + UINT8 status_read(); void data_write(UINT8 data); - + protected: // device-level overrides virtual void device_start(); @@ -147,11 +147,11 @@ protected: void generate_adpcm(const address_space *space, stream_sample_t *buffer, int samples); adpcm_state m_adpcm; // current ADPCM state - bool m_playing; - offs_t m_base_offset; // pointer to the base memory location - UINT32 m_sample; // current sample number - UINT32 m_count; // total samples to play - INT8 m_volume; // output volume + bool m_playing; + offs_t m_base_offset; // pointer to the base memory location + UINT32 m_sample; // current sample number + UINT32 m_count; // total samples to play + INT8 m_volume; // output volume }; // internal state @@ -159,10 +159,10 @@ protected: const okim6295_device_config &m_config; - okim_voice m_voice[OKIM6295_VOICES]; - INT32 m_command; - bool m_bank_installed; - offs_t m_bank_offs; + okim_voice m_voice[OKIM6295_VOICES]; + INT32 m_command; + bool m_bank_installed; + offs_t m_bank_offs; sound_stream * m_stream; UINT8 m_pin7_state; |