Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_sndfile.c

    r4b16721 re136c9f  
    175175  sf_count_t read_samples = aubio_sf_read_smpl (s->handle, s->scratch_data,
    176176      s->scratch_size);
     177  uint_t read_length = read_samples / s->input_channels;
     178
     179  /* where to store de-interleaved data */
     180  smpl_t *ptr_data;
     181
    177182  if (!s->handle) {
    178183    AUBIO_ERR("source_sndfile: could not read from %s (file was closed)\n",
     
    182187  }
    183188
    184   uint_t read_length = read_samples / s->input_channels;
    185 
    186   /* where to store de-interleaved data */
    187   smpl_t *ptr_data;
    188189#ifdef HAVE_SAMPLERATE
    189190  if (s->ratio != 1) {
     
    226227  sf_count_t read_samples = aubio_sf_read_smpl (s->handle, s->scratch_data,
    227228      s->scratch_size);
     229  uint_t read_length = read_samples / s->input_channels;
     230
     231  /* where to store de-interleaved data */
     232  smpl_t **ptr_data;
     233
    228234  if (!s->handle) {
    229235    AUBIO_ERR("source_sndfile: could not read from %s (file was closed)\n",
     
    233239  }
    234240
    235   uint_t read_length = read_samples / s->input_channels;
    236 
    237   /* where to store de-interleaved data */
    238   smpl_t **ptr_data;
    239241#ifdef HAVE_SAMPLERATE
    240242  if (s->ratio != 1) {
Note: See TracChangeset for help on using the changeset viewer.