From 4308e2a0c75c1813671327d19e9f983a62f71133 Mon Sep 17 00:00:00 2001 From: AJR Date: Tue, 15 May 2018 20:28:54 -0400 Subject: [PATCH] sound.cpp: Turn this check into an assert now that the caller should prevent this (nw) --- src/emu/sound.cpp | 4 +--- 1 file changed, 1 insertion(+), 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++)