Ignore:
Timestamp:
Feb 11, 2013, 11:06:28 AM (11 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
050a8f3
Parents:
5314432 (diff), 88fc249 (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.
Message:

merge from develop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source_sndfile.c

    r5314432 rfc117d0  
    7070
    7171  s->hop_size = hop_size;
    72   s->samplerate = samplerate;
    7372  s->channels = 1;
    7473  s->path = path;
     
    9089  s->input_format     = sfinfo.format;
    9190
    92   if (s->samplerate == 1) s->samplerate = s->input_samplerate;
    93 
     91  if (samplerate == 0) {
     92    samplerate = s->input_samplerate;
     93    //AUBIO_DBG("sampling rate set to 0, automagically adjusting to %d\n", samplerate);
     94  }
     95  s->samplerate = samplerate;
    9496  /* compute input block size required before resampling */
    9597  s->ratio = s->samplerate/(float)s->input_samplerate;
     
    192194}
    193195
     196uint_t aubio_source_sndfile_get_samplerate(aubio_source_sndfile_t * s) {
     197  return s->samplerate;
     198}
     199
    194200#endif /* HAVE_SNDFILE */
Note: See TracChangeset for help on using the changeset viewer.