- Timestamp:
- Dec 10, 2013, 11:57:30 PM (11 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:
- 906c0a2
- Parents:
- bf63c61
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/ext/py-source.c
rbf63c61 r18e22f9 41 41 42 42 self->samplerate = 0; 43 if ( samplerate > 0) {43 if ((sint_t)samplerate > 0) { 44 44 self->samplerate = samplerate; 45 //} else if (samplerate < 0) {46 //PyErr_SetString (PyExc_ValueError,47 //"can not use negative value for samplerate");48 //return NULL;45 } else if ((sint_t)samplerate < 0) { 46 PyErr_SetString (PyExc_ValueError, 47 "can not use negative value for samplerate"); 48 return NULL; 49 49 } 50 50 51 51 self->hop_size = Py_default_vector_length / 2; 52 if ( hop_size > 0) {52 if ((sint_t)hop_size > 0) { 53 53 self->hop_size = hop_size; 54 //} else if (hop_size < 0) {55 //PyErr_SetString (PyExc_ValueError,56 //"can not use negative value for hop_size");57 //return NULL;54 } else if ((sint_t)hop_size < 0) { 55 PyErr_SetString (PyExc_ValueError, 56 "can not use negative value for hop_size"); 57 return NULL; 58 58 } 59 59
Note: See TracChangeset
for help on using the changeset viewer.