diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-12 00:19:39 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-12 01:04:00 +0400 |
commit | ae5a55e77a209ebbac6201ffd790dc7841634266 (patch) | |
tree | dd6cf348b7bb7ddd239d669ccc6fe734f5dc6087 /libswresample/swresample_internal.h | |
parent | 431dcc49d2dca8e01e766a4a36e3aa6becbaeb55 (diff) |
swr: move flush into Resampler
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/swresample_internal.h')
-rw-r--r-- | libswresample/swresample_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libswresample/swresample_internal.h b/libswresample/swresample_internal.h index c4a660fd97..bc53e6a699 100644 --- a/libswresample/swresample_internal.h +++ b/libswresample/swresample_internal.h @@ -128,6 +128,7 @@ typedef struct ResampleContext * (* resample_init_func)(struct ResampleContext * double cutoff, enum AVSampleFormat format, enum SwrFilterType filter_type, int kaiser_beta); typedef void (* resample_free_func)(struct ResampleContext **c); typedef int (* multiple_resample_func)(struct ResampleContext *c, AudioData *dst, int dst_size, AudioData *src, int src_size, int *consumed); +typedef int (* resample_flush_func)(struct SwrContext *c); typedef int (* set_compensation_func)(struct ResampleContext *c, int sample_delta, int compensation_distance); typedef int64_t (* get_delay_func)(struct SwrContext *s, int64_t base); @@ -135,6 +136,7 @@ struct Resampler { resample_init_func init; resample_free_func free; multiple_resample_func multiple_resample; + resample_flush_func flush; set_compensation_func set_compensation; get_delay_func get_delay; }; |