Changeset d69e37d
- Timestamp:
- Sep 25, 2009, 3:54:05 AM (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:
- 194ef6b
- Parents:
- bd54912
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ext/sndfileio.c
rbd54912 rd69e37d 129 129 int nsamples = frames*channels; 130 130 int aread; 131 float *pread;131 smpl_t *pread; 132 132 133 133 /* allocate data for de/interleaving reallocated when needed. */ … … 149 149 /* de-interleaving data */ 150 150 for (i=0; i<channels; i++) { 151 pread = ( float *)fvec_get_channel(read,i);151 pread = (smpl_t *)fvec_get_channel(read,i); 152 152 for (j=0; j<aread; j++) { 153 pread[j] = f->tmpdata[channels*j+i];153 pread[j] = (smpl_t)f->tmpdata[channels*j+i]; 154 154 } 155 155 } … … 164 164 int i, j, channels = f->channels; 165 165 int nsamples = channels*frames; 166 float *pwrite;166 smpl_t *pwrite; 167 167 168 168 /* allocate data for de/interleaving reallocated when needed. */ … … 179 179 /* interleaving data */ 180 180 for (i=0; i<channels; i++) { 181 pwrite = ( float *)fvec_get_channel(write,i);181 pwrite = (smpl_t *)fvec_get_channel(write,i); 182 182 for (j=0; j<frames; j++) { 183 f->tmpdata[channels*j+i] = pwrite[j];183 f->tmpdata[channels*j+i] = (float)pwrite[j]; 184 184 } 185 185 }
Note: See TracChangeset
for help on using the changeset viewer.