src/io/source_wavread.c: open file in binary mode for windows
authorPaul Brossier <piem@piem.org>
Sat, 4 Jan 2014 01:44:37 +0000 (21:44 -0400)
committerPaul Brossier <piem@piem.org>
Sat, 4 Jan 2014 01:44:37 +0000 (21:44 -0400)
src/io/source_wavread.c

index 2d875c5..9c51b11 100644 (file)
@@ -87,7 +87,7 @@ aubio_source_wavread_t * new_aubio_source_wavread(char_t * path, uint_t samplera
   s->samplerate = samplerate;
   s->hop_size = hop_size;
 
-  s->fid = fopen((const char *)path, "r");
+  s->fid = fopen((const char *)path, "rb");
   if (!s->fid) {
     AUBIO_ERR("source_wavread: could not open %s (%s)\n", s->path, strerror(errno));
     goto beach;