Mercurial > audlegacy
changeset 3760:8fdaccee8312
flows
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Sun, 14 Oct 2007 21:48:19 -0500 |
parents | 9e54690956a0 |
children | ccc3725a82b3 |
files | src/audacious/input.h src/audacious/plugin.h |
diffstat | 2 files changed, 25 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/input.h Sun Oct 14 21:37:31 2007 -0500 +++ b/src/audacious/input.h Sun Oct 14 21:48:19 2007 -0500 @@ -40,11 +40,6 @@ GMutex *playback_mutex; }; -typedef struct { - Tuple *tuple; - InputPlugin *ip; -} ProbeResult; - GList *get_input_list(void); InputPlayback *get_current_input_playback(void); void set_current_input_playback(InputPlayback * ip);
--- a/src/audacious/plugin.h Sun Oct 14 21:37:31 2007 -0500 +++ b/src/audacious/plugin.h Sun Oct 14 21:48:19 2007 -0500 @@ -89,6 +89,11 @@ typedef struct _InputPlayback InputPlayback; +typedef struct { + Tuple *tuple; + InputPlugin *ip; +} ProbeResult; + typedef GHashTable INIFile; #include "audacious/playlist.h" @@ -99,6 +104,7 @@ #include "audacious/xconvert.h" #include "audacious/ui_plugin_menu.h" #include "audacious/formatter.h" +#include "audacious/flow.h" #define PLUGIN_COMMON_FIELDS \ gpointer handle; \ @@ -559,6 +565,16 @@ /* InputPlayback */ InputPlayback *(*playback_new)(void); void (*playback_run)(InputPlayback *); + + /* Flows */ + gsize (*flow_execute)(Flow *flow, gint time, gpointer *data, gsize len, AFormat fmt, + gint srate, gint channels); + Flow *(*flow_new)(void); + void (*flow_link_element)(Flow *flow, FlowFunction func); + void (*flow_unlink_element)(Flow *flow, FlowFunction func); + void (*effect_flow)(FlowContext *context); + void (*iir_flow)(FlowContext *context); + void (*volumecontrol_flow)(FlowContext *context); }; /* Convenience macros for accessing the public API. */ @@ -877,6 +893,15 @@ #define aud_playback_run _audvt->playback_run #define aud_playback_free(x) g_slice_free(InputPlayback, (x)) +#define aud_flow_execute _audvt->flow_execute +#define aud_flow_new _audvt->flow_new +#define aud_flow_link_element _audvt->flow_link_element +#define aud_flow_unlink_element _audvt->flow_unlink_element +#define aud_effect_flow _audvt->effect_flow +#define aud_iir_flow _audvt->iir_flow +#define aud_volumecontrol_flow _audvt->volumecontrol_flow +#define aud_flow_destroy(flow) mowgli_object_unref(flow) + #include "audacious/auddrct.h" /* for multi-file plugins :( */