Changeset c7860af for src/lvec.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/lvec.h
rc6d0169 rc7860af 39 39 typedef struct { 40 40 uint_t length; /**< length of buffer */ 41 uint_t channels; /**< number of channels */ 42 lsmp_t **data; /**< data array of size [length] * [channels] */ 41 lsmp_t *data; /**< data array of size [length] */ 43 42 } lvec_t; 44 43 … … 46 45 47 46 \param length the length of the buffer to create 48 \param channels the number of channels in the buffer49 47 50 48 */ 51 lvec_t * new_lvec(uint_t length , uint_t channels);49 lvec_t * new_lvec(uint_t length); 52 50 /** lvec_t buffer deletion function 53 51 … … 59 57 60 58 Note that this function is not used in the aubio library, since the same 61 result can be obtained using vec->data[ channel][position]. Its purpose is to59 result can be obtained using vec->data[position]. Its purpose is to 62 60 access these values from wrappers, as created by swig. 63 61 64 62 \param s vector to read from 65 \param channel channel to read from66 63 \param position sample position to read from 67 64 68 65 */ 69 lsmp_t lvec_read_sample(lvec_t *s, uint_t channel, uint_tposition);66 lsmp_t lvec_read_sample(lvec_t *s, uint_t position); 70 67 /** write sample value in a buffer 71 68 72 69 Note that this function is not used in the aubio library, since the same 73 result can be obtained by assigning vec->data[ channel][position]. Its purpose70 result can be obtained by assigning vec->data[position]. Its purpose 74 71 is to access these values from wrappers, as created by swig. 75 72 76 73 \param s vector to write to 77 \param data value to write in s->data[channel][position] 78 \param channel channel to write to 74 \param data value to write in s->data[position] 79 75 \param position sample position to write to 80 76 81 77 */ 82 void lvec_write_sample(lvec_t *s, lsmp_t data, uint_t channel, uint_t position); 83 /** read channel vector from a buffer 78 void lvec_write_sample(lvec_t *s, lsmp_t data, uint_t position); 84 79 85 Note that this function is not used in the aubio library, since the same86 result can be obtained with vec->data[channel]. Its purpose is to access87 these values from wrappers, as created by swig.88 89 \param s vector to read from90 \param channel channel to read from91 92 */93 lsmp_t * lvec_get_channel(lvec_t *s, uint_t channel);94 /** write channel vector into a buffer95 96 Note that this function is not used in the aubio library, since the same97 result can be obtained by assigning vec->data[channel]. Its purpose is to98 access these values from wrappers, as created by swig.99 100 \param s vector to write to101 \param data vector of [length] values to write102 \param channel channel to write to103 104 */105 void lvec_put_channel(lvec_t *s, lsmp_t * data, uint_t channel);106 80 /** read data from a buffer 107 81 … … 113 87 114 88 */ 115 lsmp_t * *lvec_get_data(lvec_t *s);89 lsmp_t * lvec_get_data(lvec_t *s); 116 90 117 91 /** print out lvec data
Note: See TracChangeset
for help on using the changeset viewer.