Changeset 4087d54
- Timestamp:
- Dec 29, 2013, 12:38:03 AM (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:
- 5c6acbb2
- Parents:
- 5c6b264
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/phasevoc.c
r5c6b264 r4087d54 120 120 const smpl_t * datanew, uint_t win_s, uint_t hop_s) 121 121 { 122 #if !HAVE_MEMCPY_HACKS 122 123 uint_t i; 123 124 for (i = 0; i < win_s - hop_s; i++) … … 127 128 for (i = 0; i < win_s - hop_s; i++) 128 129 dataold[i] = data[i + hop_s]; 130 #else 131 memcpy(data, dataold, (win_s - hop_s) * sizeof(smpl_t)); 132 data += win_s - hop_s; 133 memcpy(data, datanew, hop_s * sizeof(smpl_t)); 134 data -= win_s - hop_s; 135 data += hop_s; 136 memcpy(dataold, data, (win_s - hop_s) * sizeof(smpl_t)); 137 #endif 129 138 } 130 139
Note: See TracChangeset
for help on using the changeset viewer.