- Timestamp:
- Aug 26, 2014, 5:24:56 AM (10 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:
- 0ff4434
- Parents:
- 2722dc7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/synth/sampler.c
r2722dc7 r79b54ea 40 40 { 41 41 aubio_sampler_t *s = AUBIO_NEW(aubio_sampler_t); 42 if ((sint_t)blocksize < 1) { 43 AUBIO_ERR("sampler: got blocksize %d, but can not be < 1\n", blocksize); 44 goto beach; 45 } 42 46 s->samplerate = samplerate; 43 47 s->blocksize = blocksize; … … 47 51 s->playing = 0; 48 52 return s; 53 beach: 54 AUBIO_FREE(s); 55 return NULL; 49 56 } 50 57
Note: See TracChangeset
for help on using the changeset viewer.