From f74f96410fbb34cb3d77af1b8b26469eeb6faec3 Mon Sep 17 00:00:00 2001 From: hap Date: Sat, 23 Nov 2024 12:16:23 +0100 Subject: redbaron: change nosedive sound to noteslide down instead of noteslide up --- src/devices/cpu/scmp/scmp.cpp | 2 +- src/mame/atari/redbaron.cpp | 17 ++++++----------- src/mame/atari/redbaron.h | 2 -- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/src/devices/cpu/scmp/scmp.cpp b/src/devices/cpu/scmp/scmp.cpp index a936dc4749a..efd89f31469 100644 --- a/src/devices/cpu/scmp/scmp.cpp +++ b/src/devices/cpu/scmp/scmp.cpp @@ -2,7 +2,7 @@ // copyright-holders:Miodrag Milanovic /***************************************************************************** * - * scmp.c + * scmp.cpp * * National Semiconductor SC/MP CPU emulation * (SC/MP = Simple-to-use, Cost-effective MicroProcessor) diff --git a/src/mame/atari/redbaron.cpp b/src/mame/atari/redbaron.cpp index 2db97bd8eeb..43989e8d85a 100644 --- a/src/mame/atari/redbaron.cpp +++ b/src/mame/atari/redbaron.cpp @@ -4,6 +4,9 @@ Atari Red Baron sound hardware + TODO: + - convert to netlist + *************************************************************************/ /* @@ -18,7 +21,6 @@ #include "emu.h" #include "redbaron.h" -#include "sound/pokey.h" #include @@ -159,7 +161,7 @@ void redbaron_sound_device::sound_stream_update(sound_stream &stream, std::vecto /* discharge C32 (0.1u) through R26 (33k) + R27 (15k) * 0.68 * C32 * (R26 + R27) = 3264us */ -// constexpr int C32_DISCHARGE_TIME = int(32767 / 0.003264); + //constexpr int C32_DISCHARGE_TIME = int(32767 / 0.003264); /* I think this is to short. Is C32 really 1u? */ constexpr int C32_DISCHARGE_TIME = int(32767 / 0.03264); m_shot_amp_counter -= C32_DISCHARGE_TIME; @@ -201,7 +203,7 @@ void redbaron_sound_device::sound_stream_update(sound_stream &stream, std::vecto * frequency = 1.44 / ((33k + 2*47k) * 0.01u) = 1134Hz * modulated by squeal_amp */ - m_squeal_off_counter -= (1134 + 1134 * m_squeal_amp / 32767) / 3; + m_squeal_off_counter -= 2268 - 1134 * m_squeal_amp / 32767; while( m_squeal_off_counter <= 0 ) { m_squeal_off_counter += OUTPUT_RATE; @@ -219,7 +221,7 @@ void redbaron_sound_device::sound_stream_update(sound_stream &stream, std::vecto } } - /* mix sequal sound at 40% */ + /* mix squeal sound at 40% */ if( m_squeal_out ) sum += 32767 * 40 / 100; @@ -237,10 +239,3 @@ void redbaron_sound_device::sounds_w(uint8_t data) m_channel->update(); m_latch = data; } - - -void redbaron_sound_device::pokey_w(offs_t offset, uint8_t data) -{ - //if( m_latch & 0x20 ) - //m_pokey->write(offset, data); -} diff --git a/src/mame/atari/redbaron.h b/src/mame/atari/redbaron.h index 199f8a1eb15..8a9e303624b 100644 --- a/src/mame/atari/redbaron.h +++ b/src/mame/atari/redbaron.h @@ -22,8 +22,6 @@ protected: virtual void sound_stream_update(sound_stream &stream, std::vector const &inputs, std::vector &outputs) override; private: - [[maybe_unused]] void pokey_w(offs_t offset, uint8_t data); - std::unique_ptr m_vol_lookup; int16_t m_vol_crash[16]; -- cgit v1.2.3