mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-28 12:33:04 +00:00
Fix a broken assertion ... compare samples size, not bytes size
This commit is contained in:
parent
d3ae7d1524
commit
e108f4591a
@ -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<num_samples_pad; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user