diff options
Diffstat (limited to 'src/emu/sound/sn76496.h')
-rw-r--r-- | src/emu/sound/sn76496.h | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/src/emu/sound/sn76496.h b/src/emu/sound/sn76496.h index a832791d16a..f6d03596edc 100644 --- a/src/emu/sound/sn76496.h +++ b/src/emu/sound/sn76496.h @@ -17,7 +17,7 @@ extern const device_type SEGAPSG; struct sn76496_config { - devcb_write_line ready; + devcb_write_line ready; }; class sn76496_base_device : public device_t, public device_sound_interface @@ -32,39 +32,39 @@ public: DECLARE_WRITE8_MEMBER( write ); protected: - void device_start(); - void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples); + void device_start(); + void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples); private: - inline bool in_noise_mode(); - void register_for_save_states(); - void countdown_cycles(); - - bool m_ready_state; - - devcb_resolved_write_line m_ready; - - sound_stream* m_sound; - - const INT32 m_feedback_mask; // mask for feedback - const INT32 m_whitenoise_tap1; // mask for white noise tap 1 (higher one, usually bit 14) - const INT32 m_whitenoise_tap2; // mask for white noise tap 2 (lower one, usually bit 13) - const bool m_negate; // output negate flag - const bool m_stereo; // whether we're dealing with stereo or not - const INT32 m_clock_divider; // clock divider - const bool m_freq0_is_max; // flag for if frequency zero acts as if it is one more than max (0x3ff+1) or if it acts like 0 - - INT32 m_vol_table[16]; // volume table (for 4-bit to db conversion) - INT32 m_register[8]; // registers - INT32 m_last_register; // last register written - INT32 m_volume[4]; // db volume of voice 0-2 and noise - UINT32 m_RNG; // noise generator LFSR - INT32 m_current_clock; - INT32 m_stereo_mask; // the stereo output mask - INT32 m_period[4]; // Length of 1/2 of waveform - INT32 m_count[4]; // Position within the waveform - INT32 m_output[4]; // 1-bit output of each channel, pre-volume - INT32 m_cycles_to_ready; // number of cycles until the READY line goes active + inline bool in_noise_mode(); + void register_for_save_states(); + void countdown_cycles(); + + bool m_ready_state; + + devcb_resolved_write_line m_ready; + + sound_stream* m_sound; + + const INT32 m_feedback_mask; // mask for feedback + const INT32 m_whitenoise_tap1; // mask for white noise tap 1 (higher one, usually bit 14) + const INT32 m_whitenoise_tap2; // mask for white noise tap 2 (lower one, usually bit 13) + const bool m_negate; // output negate flag + const bool m_stereo; // whether we're dealing with stereo or not + const INT32 m_clock_divider; // clock divider + const bool m_freq0_is_max; // flag for if frequency zero acts as if it is one more than max (0x3ff+1) or if it acts like 0 + + INT32 m_vol_table[16]; // volume table (for 4-bit to db conversion) + INT32 m_register[8]; // registers + INT32 m_last_register; // last register written + INT32 m_volume[4]; // db volume of voice 0-2 and noise + UINT32 m_RNG; // noise generator LFSR + INT32 m_current_clock; + INT32 m_stereo_mask; // the stereo output mask + INT32 m_period[4]; // Length of 1/2 of waveform + INT32 m_count[4]; // Position within the waveform + INT32 m_output[4]; // 1-bit output of each channel, pre-volume + INT32 m_cycles_to_ready; // number of cycles until the READY line goes active }; // SN76496: Whitenoise verified, phase verified, periodic verified (by Michael Zapf) |