- Timestamp:
- Oct 15, 2009, 3:37:08 PM (15 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:
- 24d4433
- Parents:
- c9cebe1
- Location:
- src/temporal
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/temporal/resampler.c
rc9cebe1 rfe9c314 31 31 SRC_DATA *proc; 32 32 SRC_STATE *stat; 33 float ratio;33 smpl_t ratio; 34 34 uint_t type; 35 35 }; 36 36 37 aubio_resampler_t * new_aubio_resampler( float ratio, uint_t type) {37 aubio_resampler_t * new_aubio_resampler(smpl_t ratio, uint_t type) { 38 38 aubio_resampler_t * s = AUBIO_NEW(aubio_resampler_t); 39 39 int error = 0; … … 56 56 s->proc->input_frames = input->length; 57 57 s->proc->output_frames = output->length; 58 s->proc->src_ratio = s->ratio;58 s->proc->src_ratio = (double)s->ratio; 59 59 for (i = 0 ; i< input->channels; i++) 60 60 { -
src/temporal/resampler.h
rc9cebe1 rfe9c314 43 43 44 44 */ 45 aubio_resampler_t * new_aubio_resampler( float ratio, uint_t type);45 aubio_resampler_t * new_aubio_resampler(smpl_t ratio, uint_t type); 46 46 47 47 /** delete resampler object */
Note: See TracChangeset
for help on using the changeset viewer.