Skip to content

Commit 072854a

Browse files
committed
Support for passing lists of actions to the callback
1 parent aea46e0 commit 072854a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/rtmixer.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,12 @@ int callback(const void* input, void* output, frame_t frameCount
5757
{
5858
// Actions are added at the beginning of the list, because CANCEL actions
5959
// must come before the action they are cancelling. Also, it's easier.
60-
action->next = state->actions;
60+
struct action* i = action;
61+
while (i->next)
62+
{
63+
i = i->next;
64+
}
65+
i->next = state->actions;
6166
state->actions = action;
6267
}
6368

0 commit comments

Comments
 (0)