- Timestamp:
- Jul 27, 2012, 7:24:32 PM (12 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, pitchshift, sampler, timestretch, yinfft+
- Children:
- e1703b3
- Parents:
- 85ebab8
- Location:
- src/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/io/source_sndfile.c
r85ebab8 r063fa5a 90 90 s->input_format = sfinfo.format; 91 91 92 if (s->samplerate == 1) s->samplerate = s->input_samplerate; 93 92 94 /* compute input block size required before resampling */ 93 95 s->ratio = s->samplerate/(float)s->input_samplerate; … … 169 171 } 170 172 173 uint_t aubio_source_sndfile_get_samplerate(aubio_source_sndfile_t * s) { 174 return s->samplerate; 175 } 176 171 177 void del_aubio_source_sndfile(aubio_source_sndfile_t * s){ 172 178 if (!s) return; -
src/io/source_sndfile.h
r85ebab8 r063fa5a 25 25 aubio_source_sndfile_t * new_aubio_source_sndfile(char_t * path, uint_t samplerate, uint_t block_size); 26 26 void aubio_source_sndfile_do(aubio_source_sndfile_t * s, fvec_t * read_to, uint_t * read); 27 uint_t aubio_source_sndfile_get_samplerate(aubio_source_sndfile_t * s); 27 28 void del_aubio_source_sndfile(aubio_source_sndfile_t * s); 28 29
Note: See TracChangeset
for help on using the changeset viewer.