mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-25 11:30:06 +00:00
Fix invalid assert ... system_buffer_size can be modified lower
This commit is contained in:
parent
411e474c4b
commit
ef7472b3ac
@ -231,7 +231,9 @@ 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 <= system_buffer_size);
|
||||
if (num_samples_pad > system_buffer_size/sizeof(int16_t)) {
|
||||
num_samples_pad = system_buffer_size/sizeof(int16_t);
|
||||
}
|
||||
|
||||
//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…
x
Reference in New Issue
Block a user