projects
/
aubio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tests/src/io/test-source*.c: always get samplerate
[aubio.git]
/
tests
/
src
/
io
/
test-source_sndfile.c
diff --git
a/tests/src/io/test-source_sndfile.c
b/tests/src/io/test-source_sndfile.c
index
b9a0ce5
..
ab22c35
100644
(file)
--- a/
tests/src/io/test-source_sndfile.c
+++ b/
tests/src/io/test-source_sndfile.c
@@
-39,7
+39,7
@@
int main (int argc, char **argv)
if (!s) { err = 1; goto beach; }
fvec_t *vec = new_fvec(hop_size);
-
if (samplerate == 0 )
samplerate = aubio_source_sndfile_get_samplerate(s);
+ samplerate = aubio_source_sndfile_get_samplerate(s);
do {
aubio_source_sndfile_do(s, vec, &read);