summaryrefslogtreecommitdiffstats
path: root/gst/audioresample/resample.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2005-12-02 11:34:50 +0000
committerWim Taymans <wim.taymans@gmail.com>2005-12-02 11:34:50 +0000
commitc962e657c3ce4ef1ba270b9c298d07eb9e3b1c09 (patch)
tree44e5b1068699db69a59d2772d4930723eca0acad /gst/audioresample/resample.h
parent130b68aeff56298ade65ce96fb4966356afb5cd5 (diff)
downloadgst-plugins-bad-c962e657c3ce4ef1ba270b9c298d07eb9e3b1c09.tar.gz
gst-plugins-bad-c962e657c3ce4ef1ba270b9c298d07eb9e3b1c09.tar.bz2
gst-plugins-bad-c962e657c3ce4ef1ba270b9c298d07eb9e3b1c09.zip
gst/audioresample/: Fix audioresample, seek torture, new segments, reverse negotiation etc.. work fine.
Original commit message from CVS: * gst/audioresample/buffer.c: (audioresample_buffer_queue_flush): * gst/audioresample/buffer.h: * gst/audioresample/gstaudioresample.c: * gst/audioresample/gstaudioresample.h: * gst/audioresample/resample.c: (resample_input_flush), (resample_input_pushthrough), (resample_input_eos), (resample_get_output_size_for_input), (resample_get_input_size_for_output), (resample_get_output_size), (resample_get_output_data): * gst/audioresample/resample.h: * gst/audioresample/resample_ref.c: (resample_scale_ref): Fix audioresample, seek torture, new segments, reverse negotiation etc.. work fine.
Diffstat (limited to 'gst/audioresample/resample.h')
-rw-r--r--gst/audioresample/resample.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/audioresample/resample.h b/gst/audioresample/resample.h
index ea4aa305..f27e2be4 100644
--- a/gst/audioresample/resample.h
+++ b/gst/audioresample/resample.h
@@ -67,6 +67,7 @@ struct _ResampleState {
void *buffer;
int buffer_len;
+ int buffer_filled;
double i_start;
double o_start;
@@ -98,8 +99,12 @@ void resample_free (ResampleState *state);
void resample_add_input_data (ResampleState * r, void *data, int size,
ResampleCallback free_func, void *closure);
void resample_input_eos (ResampleState *r);
+void resample_input_flush (ResampleState *r);
+void resample_input_pushthrough (ResampleState *r);
int resample_get_output_size_for_input (ResampleState * r, int size);
+int resample_get_input_size_for_output (ResampleState * r, int size);
+
int resample_get_output_size (ResampleState *r);
int resample_get_output_data (ResampleState *r, void *data, int size);