[sink_wavwrite] check fseek and fwrite return values
[aubio.git] / src / io / source_avcodec.h
index 7925591..81f657d 100644 (file)
@@ -18,8 +18,8 @@
 
 */
 
-#ifndef _AUBIO_SOURCE_AVCODEC_H
-#define _AUBIO_SOURCE_AVCODEC_H
+#ifndef AUBIO_SOURCE_AVCODEC_H
+#define AUBIO_SOURCE_AVCODEC_H
 
 /** \file
 
@@ -120,6 +120,16 @@ uint_t aubio_source_avcodec_seek (aubio_source_avcodec_t *s, uint_t pos);
 
 /**
 
+  get the duration of source object, in frames
+
+  \param s source object, created with ::new_aubio_source_avcodec
+  \return number of frames in file
+
+*/
+uint_t aubio_source_avcodec_get_duration (aubio_source_avcodec_t * s);
+
+/**
+
   close source
 
   \param s source object, created with ::new_aubio_source_avcodec
@@ -142,4 +152,4 @@ void del_aubio_source_avcodec(aubio_source_avcodec_t * s);
 }
 #endif
 
-#endif /* _AUBIO_SOURCE_AVCODEC_H */
+#endif /* AUBIO_SOURCE_AVCODEC_H */