diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2016-01-27 08:12:00 +0100 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2016-01-27 08:12:00 +0100 |
commit | b1d6f6d63f8294a3f62d7db6f9eea07da1d93664 (patch) | |
tree | 10258b6f255e00e7eec2ec30112d6de07015c475 /src/devices/sound | |
parent | 9425c141de76ef9ee178af80731110e228fa89bb (diff) |
Cleanups and version bumpmame0170
Diffstat (limited to 'src/devices/sound')
-rw-r--r-- | src/devices/sound/beep.cpp | 2 | ||||
-rw-r--r-- | src/devices/sound/fm.cpp | 2 | ||||
-rw-r--r-- | src/devices/sound/rf5c400.cpp | 2 | ||||
-rw-r--r-- | src/devices/sound/s14001a.cpp | 4 | ||||
-rw-r--r-- | src/devices/sound/s14001a.h | 12 | ||||
-rw-r--r-- | src/devices/sound/scsp.cpp | 2 | ||||
-rw-r--r-- | src/devices/sound/sn76477.cpp | 38 | ||||
-rw-r--r-- | src/devices/sound/upd7759.h | 2 |
8 files changed, 32 insertions, 32 deletions
diff --git a/src/devices/sound/beep.cpp b/src/devices/sound/beep.cpp index a6dd5226453..7997b590a86 100644 --- a/src/devices/sound/beep.cpp +++ b/src/devices/sound/beep.cpp @@ -50,7 +50,7 @@ void beep_device::device_start() m_stream = stream_alloc(0, 1, BEEP_RATE); m_enable = 0; m_signal = 0x07fff; - + // register for savestates save_item(NAME(m_enable)); save_item(NAME(m_frequency)); diff --git a/src/devices/sound/fm.cpp b/src/devices/sound/fm.cpp index fbc45073060..ee74c47fd97 100644 --- a/src/devices/sound/fm.cpp +++ b/src/devices/sound/fm.cpp @@ -2423,7 +2423,7 @@ struct YM2610 UINT8 flagmask; /* YM2608 only */ UINT8 irqmask; /* YM2608 only */ - device_t *device; + device_t *device; }; /* here is the virtual YM2608 */ diff --git a/src/devices/sound/rf5c400.cpp b/src/devices/sound/rf5c400.cpp index e652dda3056..6eaa2245ca9 100644 --- a/src/devices/sound/rf5c400.cpp +++ b/src/devices/sound/rf5c400.cpp @@ -355,7 +355,7 @@ READ16_MEMBER( rf5c400_device::rf5c400_r ) return 0; } - case 0x13: // memory read + case 0x13: // memory read { return m_rom[m_ext_mem_address]; } diff --git a/src/devices/sound/s14001a.cpp b/src/devices/sound/s14001a.cpp index 3dae9652297..627d3214b10 100644 --- a/src/devices/sound/s14001a.cpp +++ b/src/devices/sound/s14001a.cpp @@ -132,11 +132,11 @@ void s14001a_device::device_start() // resolve callbacks m_ext_read_handler.resolve(); m_bsy_handler.resolve(); - + // note: zerofill is done already by MAME core ClearStatistics(); m_uOutputP1 = m_uOutputP2 = 7; - + // register for savestates save_item(NAME(m_bPhase1)); save_item(NAME(m_uStateP1)); diff --git a/src/devices/sound/s14001a.h b/src/devices/sound/s14001a.h index 7a690cbbc02..97025b8c3c1 100644 --- a/src/devices/sound/s14001a.h +++ b/src/devices/sound/s14001a.h @@ -30,7 +30,7 @@ public: DECLARE_READ_LINE_MEMBER(romen_r); // ROM /EN (pin 9) DECLARE_WRITE_LINE_MEMBER(start_w); // START (pin 10) DECLARE_WRITE8_MEMBER(data_w); // 6-bit word - + void set_clock(UINT32 clock); // set new CLK frequency void force_update(); // update stream, eg. before external ROM bankswitch @@ -80,10 +80,10 @@ private: UINT16 m_uDAR13To05P1; // 9 MSBs of delta address register UINT16 m_uDAR13To05P2; // incrementing uDAR05To13 advances ROM address by 8 bytes - + UINT16 m_uDAR04To00P1; // 5 LSBs of delta address register UINT16 m_uDAR04To00P2; // 3 address ROM, 2 mux 8 bits of data into 2 bit delta - // carry indicates end of quarter pitch period (32 cycles) + // carry indicates end of quarter pitch period (32 cycles) UINT16 m_uCWARP1; // 12 bits Control Word Address Register (syllable) UINT16 m_uCWARP2; @@ -96,9 +96,9 @@ private: bool m_bSilenceP2; UINT8 m_uLengthP1; // 7 bits, upper three loaded from ROM length UINT8 m_uLengthP2; // middle two loaded from ROM repeat and/or uXRepeat - // bit 0 indicates mirror in voiced mode - // bit 1 indicates internal silence in voiced mode - // incremented each pitch period quarter + // bit 0 indicates mirror in voiced mode + // bit 1 indicates internal silence in voiced mode + // incremented each pitch period quarter UINT8 m_uXRepeatP1; // 2 bits, loaded from ROM repeat UINT8 m_uXRepeatP2; diff --git a/src/devices/sound/scsp.cpp b/src/devices/sound/scsp.cpp index 6dfacfa9a6b..1acf90f2c22 100644 --- a/src/devices/sound/scsp.cpp +++ b/src/devices/sound/scsp.cpp @@ -516,7 +516,7 @@ void scsp_device::init() } memory_region* ram_region = memregion(tag()); - + // coolridr.c defines a region for the RAM, stv.c doesn't (uses set_ram_base instead, which seems to be more correct anyway?) if (ram_region != NULL) { diff --git a/src/devices/sound/sn76477.cpp b/src/devices/sound/sn76477.cpp index f94bf98d1e3..e1fe3f4d3fc 100644 --- a/src/devices/sound/sn76477.cpp +++ b/src/devices/sound/sn76477.cpp @@ -957,17 +957,17 @@ WRITE_LINE_MEMBER(sn76477_device::enable_w) { m_channel->update(); - m_enable = state; + m_enable = state; - /* if falling edge */ - if (!m_enable) - { - /* start the attack phase */ - m_attack_decay_cap_voltage = AD_CAP_VOLTAGE_MIN; + /* if falling edge */ + if (!m_enable) + { + /* start the attack phase */ + m_attack_decay_cap_voltage = AD_CAP_VOLTAGE_MIN; - /* one-shot runs regardless of envelope mode */ - m_one_shot_running_ff = 1; - } + /* one-shot runs regardless of envelope mode */ + m_one_shot_running_ff = 1; + } log_enable_line(); } @@ -1392,16 +1392,16 @@ void sn76477_device::noise_clock_res_w(double data) { m_channel->update(); - if (data == 0) - { - m_noise_clock_ext = 1; - } - else - { - m_noise_clock_ext = 0; + if (data == 0) + { + m_noise_clock_ext = 1; + } + else + { + m_noise_clock_ext = 0; - m_noise_clock_res = data; - } + m_noise_clock_res = data; + } log_noise_gen_freq(); } @@ -1711,7 +1711,7 @@ void sn76477_device::sound_stream_update(sound_stream &stream, stream_sample_t * stream_sample_t *buffer = outputs[0]; - /* compute charging values, doing it here ensures that we always use the latest values */ + /* compute charging values, doing it here ensures that we always use the latest values */ one_shot_cap_charging_step = compute_one_shot_cap_charging_rate() / m_our_sample_rate; one_shot_cap_discharging_step = compute_one_shot_cap_discharging_rate() / m_our_sample_rate; diff --git a/src/devices/sound/upd7759.h b/src/devices/sound/upd7759.h index 5dbd03dd2ac..6828810e4eb 100644 --- a/src/devices/sound/upd7759.h +++ b/src/devices/sound/upd7759.h @@ -95,7 +95,7 @@ protected: INT16 m_sample; /* current sample value */ /* ROM access */ - optional_region_ptr<UINT8> m_rombase; /* pointer to ROM data or NULL for slave mode */ + optional_region_ptr<UINT8> m_rombase; /* pointer to ROM data or NULL for slave mode */ UINT8 * m_rom; /* pointer to ROM data or NULL for slave mode */ UINT32 m_romoffset; /* ROM offset to make save/restore easier */ UINT32 m_rommask; /* maximum address offset */ |