summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu
diff options
context:
space:
mode:
author Aaron Giles <aaronsgiles@users.noreply.github.com>2020-10-17 05:22:58 -0700
committer GitHub <noreply@github.com>2020-10-17 08:22:58 -0400
commit522dc72d2cdedaac147cac239d93112050d15e5c (patch)
tree2b722357456c949f3c02cdee84750fc063b821af /src/emu
parentf9deebb78103f9c3ab6d2688b21ed9ca4f92ff5f (diff)
dac/volt_reg: improve performance (#7274)
* dac/volt_reg: improve performance * modify dac to accept streams of any input rate to avoid resampling * modify dac to assume input voltage streams are constant by only grabbing the first input sample * modify volt_reg to output at the minimum sample rate * dac: Restructure the DAC sound devices a bit * centralize implementation based on lookup tables * add set_constant_vref() method for the common case where references are constant, thus avoiding the need for voltage regulator devices * convert williams.cpp to using this new method as a test
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/sound.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/emu/sound.cpp b/src/emu/sound.cpp
index 8063db03959..eaf640a3e57 100644
--- a/src/emu/sound.cpp
+++ b/src/emu/sound.cpp
@@ -744,6 +744,7 @@ read_stream_view sound_stream::update_view(attotime start, attotime end, u32 out
m_input_view[inputnum] = m_input[inputnum].update(update_start, end);
else
m_input_view[inputnum] = empty_view(update_start, end);
+ sound_assert(m_input_view[inputnum].samples() > 0);
sound_assert(m_resampling_disabled || m_input_view[inputnum].sample_rate() == m_sample_rate);
}