s->hop_size, read_data->length);
sf_count_t read_samples = aubio_sf_read_smpl (s->handle, s->scratch_data,
s->scratch_size);
+ if (!s->handle) {
+ AUBIO_ERR("source_sndfile: could not read from %s (file was closed)\n",
+ s->path);
+ *read = 0;
+ return;
+ }
uint_t read_length = read_samples / s->input_channels;
s->path, s->input_channels, read_data->height);
sf_count_t read_samples = aubio_sf_read_smpl (s->handle, s->scratch_data,
s->scratch_size);
+ if (!s->handle) {
+ AUBIO_ERR("source_sndfile: could not read from %s (file was closed)\n",
+ s->path);
+ *read = 0;
+ return;
+ }
uint_t read_length = read_samples / s->input_channels;