Changes in src/io/source_sndfile.c [447c673:50e10a9]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_sndfile.c
r447c673 r50e10a9 67 67 if (path == NULL) { 68 68 AUBIO_ERR("Aborted opening null path\n"); 69 goto beach; 70 } 71 if ((sint_t)samplerate < 0) { 72 AUBIO_ERR("Can not open %s with samplerate %d\n", path, samplerate); 73 goto beach; 74 } 75 if ((sint_t)hop_size <= 0) { 76 AUBIO_ERR("Can not open %s with hop_size %d\n", path, hop_size); 77 goto beach; 69 return NULL; 78 70 } 79 71 … … 82 74 s->path = path; 83 75 84 // try opening the file, get ting the info in sfinfo76 // try opening the file, geting the info in sfinfo 85 77 SF_INFO sfinfo; 86 78 AUBIO_MEMSET(&sfinfo, 0, sizeof (sfinfo)); … … 142 134 143 135 beach: 144 //AUBIO_ERR("can not read %s at samplerate %dHz with a hop_size of %d\n",145 //s->path, s->samplerate, s->hop_size);136 AUBIO_ERR("can not read %s at samplerate %dHz with a hop_size of %d\n", 137 s->path, s->samplerate, s->hop_size); 146 138 del_aubio_source_sndfile(s); 147 139 return NULL;
Note: See TracChangeset
for help on using the changeset viewer.