projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
193dcbb
)
tests/src/io/test-source.c: call aubio_source_close twice
author
Paul Brossier
<piem@piem.org>
Tue, 26 May 2015 09:19:44 +0000
(11:19 +0200)
committer
Paul Brossier
<piem@piem.org>
Tue, 26 May 2015 09:19:44 +0000
(11:19 +0200)
tests/src/io/test-source.c
patch
|
blob
|
history
diff --git
a/tests/src/io/test-source.c
b/tests/src/io/test-source.c
index
6d3e48f
..
ae1e201
100644
(file)
--- a/
tests/src/io/test-source.c
+++ b/
tests/src/io/test-source.c
@@
-44,6
+44,11
@@
int main (int argc, char **argv)
PRINT_MSG("read %d frames at %dHz (%d blocks) from %s\n", n_frames, samplerate,
n_frames / hop_size, source_path);
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:
del_fvec (vec);
del_aubio_source (s);
beach: