Mercurial > audlegacy
changeset 3558:5aec9950c47a trunk
Add time to flow_execute() and friends.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Tue, 18 Sep 2007 13:31:05 -0500 |
parents | 0cabda3eade8 |
children | 0898b8139af8 |
files | src/audacious/flow.c src/audacious/flow.h src/audacious/output.c |
diffstat | 3 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/flow.c Tue Sep 18 13:30:13 2007 -0500 +++ b/src/audacious/flow.c Tue Sep 18 13:31:05 2007 -0500 @@ -37,7 +37,7 @@ g_slice_free(Flow, flow); } -void flow_execute(Flow *flow, gpointer data, gsize len, AFormat fmt, +void flow_execute(Flow *flow, gint time, gpointer data, gsize len, AFormat fmt, gint srate, gint channels) { FlowElement *element; @@ -46,6 +46,7 @@ g_return_if_fail(flow != NULL); g_return_if_fail(data != NULL); + context.time = time; context.data = data; context.len = len; context.fmt = fmt;
--- a/src/audacious/flow.h Tue Sep 18 13:30:13 2007 -0500 +++ b/src/audacious/flow.h Tue Sep 18 13:31:05 2007 -0500 @@ -29,6 +29,7 @@ #define __AUDACIOUS_FLOW_H__ typedef struct { + gint time; gpointer data; gsize len; AFormat fmt; @@ -49,7 +50,7 @@ FlowElement *head, *tail; } Flow; -void flow_execute(Flow *flow, gpointer data, gsize len, AFormat fmt, +void flow_execute(Flow *flow, gint time, gpointer data, gsize len, AFormat fmt, gint srate, gint channels); Flow *flow_new(void);
--- a/src/audacious/output.c Tue Sep 18 13:30:13 2007 -0500 +++ b/src/audacious/output.c Tue Sep 18 13:31:05 2007 -0500 @@ -506,7 +506,7 @@ /* do vis plugin(s) */ input_add_vis_pcm(time, fmt, nch, length, ptr); - flow_execute(postproc_flow, ptr, length, op_state.fmt, op_state.rate, op_state.nch); + flow_execute(postproc_flow, time, ptr, length, op_state.fmt, op_state.rate, op_state.nch); writeoffs = 0; while (writeoffs < length)