Changeset c34336e for src/fvec.c
- Timestamp:
- Dec 17, 2013, 5:13:28 PM (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:
- 941c9f9
- Parents:
- 5d10ac1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fvec.c
r5d10ac1 rc34336e 37 37 } 38 38 39 void fvec_ write_sample(fvec_t *s, smpl_t data, uint_t position) {39 void fvec_set_sample(fvec_t *s, smpl_t data, uint_t position) { 40 40 s->data[position] = data; 41 41 } 42 42 43 smpl_t fvec_ read_sample(fvec_t *s, uint_t position) {43 smpl_t fvec_get_sample(fvec_t *s, uint_t position) { 44 44 return s->data[position]; 45 45 } … … 59 59 } 60 60 61 void fvec_set (fvec_t *s, smpl_t val) {61 void fvec_set_all (fvec_t *s, smpl_t val) { 62 62 uint_t j; 63 63 for (j=0; j< s->length; j++) { … … 70 70 memset(s->data, 0, s->length * sizeof(smpl_t)); 71 71 #else 72 fvec_set (s, 0.);72 fvec_set_all (s, 0.); 73 73 #endif 74 74 } 75 75 76 76 void fvec_ones(fvec_t *s) { 77 fvec_set (s, 1.);77 fvec_set_all (s, 1.); 78 78 } 79 79
Note: See TracChangeset
for help on using the changeset viewer.