Changeset d4791e5 for src/spectral/phasevoc.c
- Timestamp:
- Jan 3, 2014, 12:47:22 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:
- 2e01060
- Parents:
- 89e9e71 (diff), 4fe62ba (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/spectral/phasevoc.c
r89e9e71 rd4791e5 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.