Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Fade in on underrun and reset ajb #51

Merged
merged 1 commit into from
May 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/aubuf/aubuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ void aubuf_read_auframe(struct aubuf *ab, struct auframe *af)
plot_underrun(ab->ajb);
}
#endif
if (!ab->filling)
ajb_reset(ab->ajb);

filling = ab->filling;
ab->filling = true;
memset(af->sampv, 0, sz);
Expand Down