comparison src/audacious/flow.h @ 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 d4f9e45c1e27
children 6f4068a0f291
comparison
equal deleted inserted replaced
3557:0cabda3eade8 3558:5aec9950c47a
27 27
28 #ifndef __AUDACIOUS_FLOW_H__ 28 #ifndef __AUDACIOUS_FLOW_H__
29 #define __AUDACIOUS_FLOW_H__ 29 #define __AUDACIOUS_FLOW_H__
30 30
31 typedef struct { 31 typedef struct {
32 gint time;
32 gpointer data; 33 gpointer data;
33 gsize len; 34 gsize len;
34 AFormat fmt; 35 AFormat fmt;
35 gint srate; 36 gint srate;
36 gint channels; 37 gint channels;
47 typedef struct { 48 typedef struct {
48 mowgli_object_t parent; 49 mowgli_object_t parent;
49 FlowElement *head, *tail; 50 FlowElement *head, *tail;
50 } Flow; 51 } Flow;
51 52
52 void flow_execute(Flow *flow, gpointer data, gsize len, AFormat fmt, 53 void flow_execute(Flow *flow, gint time, gpointer data, gsize len, AFormat fmt,
53 gint srate, gint channels); 54 gint srate, gint channels);
54 55
55 Flow *flow_new(void); 56 Flow *flow_new(void);
56 void flow_link_element(Flow *flow, FlowFunction func); 57 void flow_link_element(Flow *flow, FlowFunction func);
57 void flow_unlink_element(Flow *flow, FlowFunction func); 58 void flow_unlink_element(Flow *flow, FlowFunction func);