From: Paul Brossier Date: Sat, 4 Jan 2014 01:44:37 +0000 (-0400) Subject: src/io/source_wavread.c: open file in binary mode for windows X-Git-Tag: 0.4.1~94 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=6d509c339a2c980cb31e57187d046166bc8d515d;p=aubio.git src/io/source_wavread.c: open file in binary mode for windows --- diff --git a/src/io/source_wavread.c b/src/io/source_wavread.c index 2d875c55..9c51b11f 100644 --- a/src/io/source_wavread.c +++ b/src/io/source_wavread.c @@ -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;