diff options
author | 2025-04-30 22:08:43 +0200 | |
---|---|---|
committer | 2025-04-30 22:08:43 +0200 | |
commit | 30be745e36203188690bcb2d2fa0f04e250caf22 (patch) | |
tree | e182ce74e2eb7390f98b561bd1f7e72052a103ef | |
parent | 838f21fb8655f4c08c7773769660f23b415c2b31 (diff) |
taitosj: workaround for large speed loss
-rw-r--r-- | src/devices/sound/discrete.cpp | 7 | ||||
-rw-r--r-- | src/mame/taito/taitosj.cpp | 3 |
2 files changed, 3 insertions, 7 deletions
diff --git a/src/devices/sound/discrete.cpp b/src/devices/sound/discrete.cpp index 1a8b16602ac..5e5c1a05ecf 100644 --- a/src/devices/sound/discrete.cpp +++ b/src/devices/sound/discrete.cpp @@ -850,9 +850,6 @@ discrete_device::~discrete_device() void discrete_device::device_start() { - // create the stream - //m_stream = stream_alloc(0, 2, 22257); - const discrete_block *intf_start = m_intf; /* If a clock is specified we will use it, otherwise run at the audio sample rate. */ @@ -861,7 +858,7 @@ void discrete_device::device_start() else m_sample_rate = this->machine().sample_rate(); m_sample_time = 1.0 / m_sample_rate; - m_neg_sample_time = - m_sample_time; + m_neg_sample_time = -m_sample_time; m_total_samples = 0; m_total_stream_updates = 0; @@ -984,8 +981,6 @@ void discrete_sound_device::device_start() { node->stream_start(); } - - } //------------------------------------------------- diff --git a/src/mame/taito/taitosj.cpp b/src/mame/taito/taitosj.cpp index 3e078d9f5ea..b9b4a37aaf0 100644 --- a/src/mame/taito/taitosj.cpp +++ b/src/mame/taito/taitosj.cpp @@ -1823,8 +1823,9 @@ void taitosj_state::nomcu(machine_config &config) WATCHDOG_TIMER(config, "watchdog").set_vblank_count("screen", 128); // 74LS393 on CPU board, counts 128 vblanks before firing watchdog - DAC_8BIT_R2R(config, m_dac, 0).add_route(ALL_OUTPUTS, "speaker", 0.15); // 30k r-2r network + DAC_8BIT_R2R(config, m_dac).add_route(ALL_OUTPUTS, "speaker", 0.15); // 30k r-2r network DISCRETE(config, m_dacvol, taitosj_dacvol_discrete); + m_dacvol->set_clock(48000 * 32); // match dac.cpp samplerate m_dacvol->add_route(0, "dac", 1.0, DAC_INPUT_RANGE_HI); m_dacvol->add_route(0, "dac", -1.0, DAC_INPUT_RANGE_LO); } |