Commit cde091ae authored by Wim Taymans's avatar Wim Taymans

audio-quantize: add _reset function

Add a reset function that clears any history.
parent 183610c0
......@@ -483,6 +483,21 @@ gst_audio_quantize_free (GstAudioQuantize * quant)
g_slice_free (GstAudioQuantize, quant);
}
/**
* gst_audio_quantize_reset:
* @quant: a #GstAudioQuantize
*
* Reset @quant to the state is was when created, clearing any
* history it might have.
*/
void
gst_audio_quantize_reset (GstAudioQuantize * quant)
{
g_free (quant->error_buf);
quant->error_buf = NULL;
quant->error_size = 0;
}
/**
* gst_audio_quantize_samples:
* @quant: a #GstAudioQuantize
......
......@@ -90,6 +90,8 @@ GstAudioQuantize * gst_audio_quantize_new (GstAudioDitherMethod dither,
void gst_audio_quantize_free (GstAudioQuantize * quant);
void gst_audio_quantize_reset (GstAudioQuantize * quant);
void gst_audio_quantize_samples (GstAudioQuantize * quant,
const gpointer in[],
gpointer out[], guint samples);
......
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