From 7e86c27b4ee9e5a3fbe6cf5249b9d918b2a5e731 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 25 Apr 2013 20:08:49 +0200 Subject: lavr: add a function for checking whether AVAudioResampleContext is open --- libavresample/avresample.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libavresample/avresample.h') diff --git a/libavresample/avresample.h b/libavresample/avresample.h index d26f2ca223..3358628e37 100644 --- a/libavresample/avresample.h +++ b/libavresample/avresample.h @@ -171,6 +171,14 @@ AVAudioResampleContext *avresample_alloc_context(void); */ int avresample_open(AVAudioResampleContext *avr); +/** + * Check whether an AVAudioResampleContext is open or closed. + * + * @param avr AVAudioResampleContext to check + * @return 1 if avr is open, 0 if avr is closed. + */ +int avresample_is_open(AVAudioResampleContext *avr); + /** * Close AVAudioResampleContext. * -- cgit v1.2.3