summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/speex/speex_resampler.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-06-27 22:26:00 +0200
committerLennart Poettering <lennart@poettering.net>2008-06-27 22:26:00 +0200
commit32fce4debb8b1eed26d7c5ba7ca807479cc47e99 (patch)
treea8f0fa756e74d86134cb3792d4f921a571ef29ee /src/pulsecore/speex/speex_resampler.h
parent2490f698c0826e2e845c0c03da58e1e3ae3d98f8 (diff)
update speex resampler
Diffstat (limited to 'src/pulsecore/speex/speex_resampler.h')
-rw-r--r--src/pulsecore/speex/speex_resampler.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/pulsecore/speex/speex_resampler.h b/src/pulsecore/speex/speex_resampler.h
index 8629eeb3..c2853f64 100644
--- a/src/pulsecore/speex/speex_resampler.h
+++ b/src/pulsecore/speex/speex_resampler.h
@@ -71,6 +71,8 @@
#define speex_resampler_get_input_stride CAT_PREFIX(RANDOM_PREFIX,_resampler_get_input_stride)
#define speex_resampler_set_output_stride CAT_PREFIX(RANDOM_PREFIX,_resampler_set_output_stride)
#define speex_resampler_get_output_stride CAT_PREFIX(RANDOM_PREFIX,_resampler_get_output_stride)
+#define speex_resampler_get_input_latency CAT_PREFIX(RANDOM_PREFIX,_resampler_get_input_latency)
+#define speex_resampler_get_output_latency CAT_PREFIX(RANDOM_PREFIX,_resampler_get_output_latency)
#define speex_resampler_skip_zeros CAT_PREFIX(RANDOM_PREFIX,_resampler_skip_zeros)
#define speex_resampler_reset_mem CAT_PREFIX(RANDOM_PREFIX,_resampler_reset_mem)
#define speex_resampler_strerror CAT_PREFIX(RANDOM_PREFIX,_resampler_strerror)
@@ -300,6 +302,16 @@ void speex_resampler_set_output_stride(SpeexResamplerState *st,
void speex_resampler_get_output_stride(SpeexResamplerState *st,
spx_uint32_t *stride);
+/** Get the latency in input samples introduced by the resampler.
+ * @param st Resampler state
+ */
+int speex_resampler_get_input_latency(SpeexResamplerState *st);
+
+/** Get the latency in output samples introduced by the resampler.
+ * @param st Resampler state
+ */
+int speex_resampler_get_output_latency(SpeexResamplerState *st);
+
/** Make sure that the first samples to go out of the resamplers don't have
* leading zeros. This is only useful before starting to use a newly created
* resampler. It is recommended to use that when resampling an audio file, as