diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2018-05-15 20:28:54 -0400 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2018-05-15 20:28:54 -0400 |
commit | 4308e2a0c75c1813671327d19e9f983a62f71133 (patch) | |
tree | 2e824c0bc7f24568b8da7777430e3b3f690e5009 | |
parent | 01d18f8372a7b90480cf266814b8ccb6c172b3f9 (diff) |
sound.cpp: Turn this check into an assert now that the caller should prevent this (nw)
-rw-r--r-- | src/emu/sound.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/emu/sound.cpp b/src/emu/sound.cpp index da20d617f29..775d85057dd 100644 --- a/src/emu/sound.cpp +++ b/src/emu/sound.cpp @@ -604,11 +604,9 @@ void sound_stream::generate_samples(int samples) { stream_sample_t **inputs = nullptr; stream_sample_t **outputs = nullptr; - // if we're already there, skip it - if (samples <= 0) - return; VPRINTF(("generate_samples(%p, %d)\n", (void *) this, samples)); + assert(samples > 0); // ensure all inputs are up to date and generate resampled data for (unsigned int inputnum = 0; inputnum < m_input.size(); inputnum++) |