Fix a broken assertion ... compare samples size, not bytes size

This commit is contained in:
Aaron Culliney 2015-09-06 13:52:36 -07:00
parent d3ae7d1524
commit e108f4591a

View File

@ -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)) { if (speakerBuffer->Lock(speakerBuffer, num_samples_pad*sizeof(int16_t), &system_samples_buffer, &system_buffer_size)) {
return; 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); //SPEAKER_LOG("bytes_queued:%d enqueueing %d quiet samples", bytes_queued, num_samples_pad);
for (unsigned int i=0; i<num_samples_pad; i++) { for (unsigned int i=0; i<num_samples_pad; i++) {