mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
sound.cpp: Turn this check into an assert now that the caller should prevent this (nw)
This commit is contained in:
parent
01d18f8372
commit
4308e2a0c7
@ -604,11 +604,9 @@ void sound_stream::generate_samples(int samples)
|
|||||||
{
|
{
|
||||||
stream_sample_t **inputs = nullptr;
|
stream_sample_t **inputs = nullptr;
|
||||||
stream_sample_t **outputs = 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));
|
VPRINTF(("generate_samples(%p, %d)\n", (void *) this, samples));
|
||||||
|
assert(samples > 0);
|
||||||
|
|
||||||
// ensure all inputs are up to date and generate resampled data
|
// ensure all inputs are up to date and generate resampled data
|
||||||
for (unsigned int inputnum = 0; inputnum < m_input.size(); inputnum++)
|
for (unsigned int inputnum = 0; inputnum < m_input.size(); inputnum++)
|
||||||
|
Loading…
Reference in New Issue
Block a user