Changes in / [8ba8bbe:6e8aa74]
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
.appveyor.yml
r8ba8bbe r6e8aa74 61 61 - "pip install ." 62 62 - "python python\\demos\\demo_create_test_sounds.py" 63 - "nose2 --verbose"63 - "nose2" 64 64 # clean up 65 65 - waf distclean -
src/io/source_sndfile.c
r8ba8bbe r6e8aa74 99 99 if (s->handle == NULL) { 100 100 /* show libsndfile err msg */ 101 AUBIO_ERR("source_sndfile: Failed opening %s (%s)\n", s->path, 102 sf_strerror (NULL)); 101 AUBIO_ERR("source_sndfile: Failed opening %s: %s\n", s->path, sf_strerror (NULL)); 103 102 goto beach; 104 103 } -
src/io/source_wavread.c
r8ba8bbe r6e8aa74 136 136 } 137 137 bytes_read += bytes_junk; 138 bytes_expected += bytes_junk + 4;138 bytes_expected += bytes_junk; 139 139 // now really read the fmt chunk 140 bytes_read +=fread(buf, 1, 4, s->fid);140 fread(buf, 1, 4, s->fid); 141 141 buf[4] = '\0'; 142 142 } … … 230 230 bytes_read += fread(buf, 1, 4, s->fid); 231 231 buf[4] = '\0'; 232 while ( strcmp((const char *)buf, "data") != 0 ) { 233 if (feof(s->fid) || ferror(s->fid)) { 234 AUBIO_ERR("source_wavread: no data RIFF header found in %s\n", s->path); 235 goto beach; 236 } 237 bytes_junk = fread(buf, 1, 4, s->fid); 238 buf[4] = '\0'; 239 bytes_junk += read_little_endian(buf, 4); 240 if (fseek(s->fid, bytes_read + bytes_junk, SEEK_SET) != 0) { 241 AUBIO_ERR("source_wavread: could not seek past unknown chunk in %s (%s)\n", 242 s->path, strerror(errno)); 243 goto beach; 244 } 245 bytes_read += bytes_junk; 246 bytes_expected += bytes_junk+ 4; 247 bytes_read += fread(buf, 1, 4, s->fid); 248 buf[4] = '\0'; 232 if ( strcmp((const char *)buf, "data") != 0 ) { 233 AUBIO_ERR("source_wavread: data RIFF header not found in %s\n", s->path); 234 goto beach; 249 235 } 250 236
Note: See TracChangeset
for help on using the changeset viewer.