diff --git a/src/audio/speaker.c b/src/audio/speaker.c index fdddfecc..6fe86c06 100644 --- a/src/audio/speaker.c +++ b/src/audio/speaker.c @@ -231,7 +231,7 @@ static void _submit_samples_buffer_fullspeed(void) { if (speakerBuffer->Lock(speakerBuffer, num_samples_pad*sizeof(int16_t), &system_samples_buffer, &system_buffer_size)) { return; } - assert(num_samples_pad*sizeof(int16_t) <= system_buffer_size); + assert(num_samples_pad <= system_buffer_size); //SPEAKER_LOG("bytes_queued:%d enqueueing %d quiet samples", bytes_queued, num_samples_pad); for (unsigned int i=0; i