Changeset c7860af for src/fvec.h
- Timestamp:
- Dec 4, 2009, 1:32:43 AM (14 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:
- 66fb3ea
- Parents:
- c6d0169
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fvec.h
rc6d0169 rc7860af 38 38 typedef struct { 39 39 uint_t length; /**< length of buffer */ 40 uint_t channels; /**< number of channels */ 41 smpl_t **data; /**< data array of size [length] * [channels] */ 40 smpl_t *data; /**< data array of size [length] */ 42 41 } fvec_t; 43 42 … … 45 44 46 45 \param length the length of the buffer to create 47 \param channels the number of channels in the buffer48 46 49 47 */ 50 fvec_t * new_fvec(uint_t length , uint_t channels);48 fvec_t * new_fvec(uint_t length); 51 49 /** fvec_t buffer deletion function 52 50 … … 58 56 59 57 Note that this function is not used in the aubio library, since the same 60 result can be obtained using vec->data[ channel][position]. Its purpose is to58 result can be obtained using vec->data[position]. Its purpose is to 61 59 access these values from wrappers, as created by swig. 62 60 63 61 \param s vector to read from 64 \param channel channel to read from65 62 \param position sample position to read from 66 63 67 64 */ 68 smpl_t fvec_read_sample(fvec_t *s, uint_t channel, uint_tposition);65 smpl_t fvec_read_sample(fvec_t *s, uint_t position); 69 66 /** write sample value in a buffer 70 67 71 68 Note that this function is not used in the aubio library, since the same 72 result can be obtained by assigning vec->data[ channel][position]. Its purpose69 result can be obtained by assigning vec->data[position]. Its purpose 73 70 is to access these values from wrappers, as created by swig. 74 71 75 72 \param s vector to write to 76 \param data value to write in s->data[channel][position] 77 \param channel channel to write to 73 \param data value to write in s->data[position] 78 74 \param position sample position to write to 79 75 80 76 */ 81 void fvec_write_sample(fvec_t *s, smpl_t data, uint_t channel, uint_t position); 82 /** read channel vector from a buffer 77 void fvec_write_sample(fvec_t *s, smpl_t data, uint_t position); 83 78 84 Note that this function is not used in the aubio library, since the same85 result can be obtained with vec->data[channel]. Its purpose is to access86 these values from wrappers, as created by swig.87 88 \param s vector to read from89 \param channel channel to read from90 91 */92 smpl_t * fvec_get_channel(fvec_t *s, uint_t channel);93 /** write channel vector into a buffer94 95 Note that this function is not used in the aubio library, since the same96 result can be obtained by assigning vec->data[channel]. Its purpose is to97 access these values from wrappers, as created by swig.98 99 \param s vector to write to100 \param data vector of [length] values to write101 \param channel channel to write to102 103 */104 void fvec_put_channel(fvec_t *s, smpl_t * data, uint_t channel);105 79 /** read data from a buffer 106 80 … … 112 86 113 87 */ 114 smpl_t * *fvec_get_data(fvec_t *s);88 smpl_t * fvec_get_data(fvec_t *s); 115 89 116 90 /** print out fvec data
Note: See TracChangeset
for help on using the changeset viewer.