Changeset 6ede3ab for src/lvec.c
- Timestamp:
- Dec 18, 2013, 7:29:16 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:
- c3c6305
- Parents:
- 4f2c28c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lvec.c
r4f2c28c r6ede3ab 40 40 s->data[position] = data; 41 41 } 42 lsmp_t lvec_ read_sample(lvec_t *s, uint_t position) {42 lsmp_t lvec_get_sample(lvec_t *s, uint_t position) { 43 43 return s->data[position]; 44 44 } … … 58 58 } 59 59 60 void lvec_set (lvec_t *s, smpl_t val) {60 void lvec_set_all (lvec_t *s, smpl_t val) { 61 61 uint_t j; 62 62 for (j=0; j< s->length; j++) { … … 69 69 memset(s->data, 0, s->length * sizeof(lsmp_t)); 70 70 #else 71 lvec_set (s, 0.);71 lvec_set_all (s, 0.); 72 72 #endif 73 73 } 74 74 75 75 void lvec_ones(lvec_t *s) { 76 lvec_set (s, 1.);76 lvec_set_all (s, 1.); 77 77 } 78 78
Note: See TracChangeset
for help on using the changeset viewer.