#324 fixed alarm sounder lag

This commit is contained in:
Mikayla Fischler
2023-08-26 19:01:22 -04:00
parent 17698b7fb4
commit 2ed28cf74d
6 changed files with 8 additions and 5 deletions

View File

@@ -73,7 +73,7 @@ function threads.thread__main(smem)
-- re-compute output if needed, then play audio if available
if sounder.stream.is_recompute_needed() then
sounder.stream.compute_buffer()
if sounder.stream.has_next_block() then sounder.play() else sounder.stop() end
if sounder.stream.any_active() then sounder.play() else sounder.stop() end
end
end