shithub: aubio

Download patch

ref: c82a03488a71f8c4f9373a393157fa785df37149
parent: 193dcbb9a1412067b126aeffaf84bb66ee7027ba
author: Paul Brossier <piem@piem.org>
date: Tue May 26 07:19:44 EDT 2015

tests/src/io/test-source.c: call aubio_source_close twice

--- a/tests/src/io/test-source.c
+++ b/tests/src/io/test-source.c
@@ -44,6 +44,11 @@
   PRINT_MSG("read %d frames at %dHz (%d blocks) from %s\n", n_frames, samplerate,
     n_frames / hop_size, source_path);
 
+  // close the file (optional)
+  aubio_source_close(s);
+  // test closing the file a second time
+  aubio_source_close(s);
+
   del_fvec (vec);
   del_aubio_source (s);
 beach: