Changeset 1ece4f8 for src/fmat.c
- Timestamp:
- Dec 17, 2013, 5:20:23 PM (11 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:
- 4ed0ed1
- Parents:
- 941c9f9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fmat.c
r941c9f9 r1ece4f8 49 49 } 50 50 51 void fmat_ write_sample(fmat_t *s, smpl_t data, uint_t channel, uint_t position) {51 void fmat_set_sample(fmat_t *s, smpl_t data, uint_t channel, uint_t position) { 52 52 s->data[channel][position] = data; 53 53 } 54 smpl_t fmat_read_sample(fmat_t *s, uint_t channel, uint_t position) { 54 55 smpl_t fmat_get_sample(fmat_t *s, uint_t channel, uint_t position) { 55 56 return s->data[channel][position]; 56 57 } 57 void fmat_put_channel(fmat_t *s, smpl_t * data, uint_t channel) { 58 s->data[channel] = data; 59 } 58 60 59 void fmat_get_channel(fmat_t *s, uint_t channel, fvec_t *output) { 61 60 output->data = s->data[channel]; 62 61 output->length = s->length; 63 62 return; 63 } 64 65 smpl_t * fmat_get_channel_data(fmat_t *s, uint_t channel) { 66 return s->data[channel]; 64 67 } 65 68
Note: See TracChangeset
for help on using the changeset viewer.