mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-08-15 05:27:32 +00:00
Flag an assert that needs to be rethought
This commit is contained in:
@@ -191,7 +191,7 @@ static void _speaker_update(/*bool toggled*/) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (UNLIKELY(samples_buffer_idx > channelsSampleRateHz)) {
|
if (UNLIKELY(samples_buffer_idx > channelsSampleRateHz)) {
|
||||||
//assert(samples_buffer_idx == channelsSampleRateHz && "should be at exactly the end, no further");
|
////assert(samples_buffer_idx == channelsSampleRateHz && "should be at exactly the end, no further");
|
||||||
if (UNLIKELY(samples_buffer_idx > channelsSampleRateHz)) {
|
if (UNLIKELY(samples_buffer_idx > channelsSampleRateHz)) {
|
||||||
ERRLOG("OOPS, possible overflow in speaker samples buffer ... samples_buffer_idx:%lu channelsSampleRateHz:%lu", samples_buffer_idx, channelsSampleRateHz);
|
ERRLOG("OOPS, possible overflow in speaker samples buffer ... samples_buffer_idx:%lu channelsSampleRateHz:%lu", samples_buffer_idx, channelsSampleRateHz);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user