Commit 03566e50 authored by Wim Taymans's avatar Wim Taymans

audio-converter: add reset function

parent 2d971df5
......@@ -972,6 +972,20 @@ gst_audio_converter_get_max_latency (GstAudioConverter * convert)
return 0;
}
/**
* gst_audio_converter_reset:
* @convert: a #GstAudioConverter
*
* Reset @convert to the state it was when it was first created, clearing
* any history it might currently have.
*/
void
gst_audio_converter_reset (GstAudioConverter * convert)
{
if (convert->quant)
gst_audio_quantize_reset (convert->quant);
}
/**
* gst_audio_converter_samples:
* @convert: a #GstAudioConverter
......
......@@ -79,6 +79,8 @@ GstAudioConverter * gst_audio_converter_new (GstAudioConverterFlags
void gst_audio_converter_free (GstAudioConverter * convert);
void gst_audio_converter_reset (GstAudioConverter * convert);
gboolean gst_audio_converter_update_config (GstAudioConverter * convert,
gint in_rate, gint out_rate,
GstStructure *config);
......
......@@ -53,6 +53,7 @@ EXPORTS
gst_audio_converter_get_max_latency
gst_audio_converter_get_out_frames
gst_audio_converter_new
gst_audio_converter_reset
gst_audio_converter_samples
gst_audio_converter_update_config
gst_audio_decoder_allocate_output_buffer
......@@ -150,6 +151,7 @@ EXPORTS
gst_audio_quantize_flags_get_type
gst_audio_quantize_free
gst_audio_quantize_new
gst_audio_quantize_reset
gst_audio_quantize_samples
gst_audio_reorder_channels
gst_audio_ring_buffer_acquire
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment