Changeset 1120f86 for src/fvec.c
- Timestamp:
- Apr 21, 2016, 6:21:43 PM (8 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:
- ae5d58a
- Parents:
- c4d251c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fvec.c
rc4d251c r1120f86 22 22 #include "fvec.h" 23 23 24 fvec_t * new_fvec( 24 fvec_t * new_fvec(uint_t length) { 25 25 fvec_t * s; 26 26 if ((sint_t)length <= 0) { … … 42 42 } 43 43 44 smpl_t fvec_get_sample( fvec_t *s, uint_t position) {44 smpl_t fvec_get_sample(const fvec_t *s, uint_t position) { 45 45 return s->data[position]; 46 46 } 47 47 48 smpl_t * fvec_get_data( fvec_t *s) {48 smpl_t * fvec_get_data(const fvec_t *s) { 49 49 return s->data; 50 50 } … … 52 52 /* helper functions */ 53 53 54 void fvec_print( fvec_t *s) {54 void fvec_print(const fvec_t *s) { 55 55 uint_t j; 56 56 for (j=0; j< s->length; j++) { … … 96 96 } 97 97 98 void fvec_weight(fvec_t *s, fvec_t *weight) {98 void fvec_weight(fvec_t *s, const fvec_t *weight) { 99 99 #ifndef HAVE_ACCELERATE 100 100 uint_t j; … … 108 108 } 109 109 110 void fvec_weighted_copy( fvec_t *in,fvec_t *weight, fvec_t *out) {110 void fvec_weighted_copy(const fvec_t *in, const fvec_t *weight, fvec_t *out) { 111 111 #ifndef HAVE_ACCELERATE 112 112 uint_t j; … … 120 120 } 121 121 122 void fvec_copy( fvec_t *s, fvec_t *t) {122 void fvec_copy(const fvec_t *s, fvec_t *t) { 123 123 if (s->length != t->length) { 124 124 AUBIO_ERR("trying to copy %d elements to %d elements \n",
Note: See TracChangeset
for help on using the changeset viewer.