Changeset 189c6ae for src/io/source_wavread.c
- Timestamp:
- Aug 7, 2018, 2:05:49 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
- Children:
- 1f112cc
- Parents:
- 4624a568 (diff), fb4ab89 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_wavread.c
r4624a568 r189c6ae 190 190 bytes_read += fread(buf, 1, 2, s->fid); 191 191 bitspersample = read_little_endian(buf, 2); 192 193 if ( channels == 0 ) { 194 AUBIO_ERR("source_wavread: Failed opening %s (number of channels can not be 0)\n", s->path); 195 goto beach; 196 } 197 198 if ( (sint_t)sr <= 0 ) { 199 AUBIO_ERR("source_wavread: Failed opening %s (samplerate can not be <= 0)\n", s->path); 200 goto beach; 201 } 202 203 if ( byterate == 0 ) { 204 AUBIO_ERR("source_wavread: Failed opening %s (byterate can not be 0)\n", s->path); 205 goto beach; 206 } 207 208 if ( bitspersample == 0 ) { 209 AUBIO_ERR("source_wavread: Failed opening %s (bitspersample can not be 0)\n", s->path); 210 goto beach; 211 } 192 212 #if 0 193 213 if ( bitspersample != 16 ) {
Note: See TracChangeset
for help on using the changeset viewer.