Changes in src/fmat.c [4ed0ed1:83d2948]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fmat.c
r4ed0ed1 r83d2948 22 22 #include "fmat.h" 23 23 24 fmat_t * new_fmat (uint_t height, uint_t length) {24 fmat_t * new_fmat (uint_t length, uint_t height) { 25 25 if ((sint_t)length <= 0 || (sint_t)height <= 0 ) { 26 26 return NULL; … … 49 49 } 50 50 51 void fmat_ set_sample(fmat_t *s, smpl_t data, uint_t channel, uint_t position) {51 void fmat_write_sample(fmat_t *s, smpl_t data, uint_t channel, uint_t position) { 52 52 s->data[channel][position] = data; 53 53 } 54 55 smpl_t fmat_get_sample(fmat_t *s, uint_t channel, uint_t position) { 54 smpl_t fmat_read_sample(fmat_t *s, uint_t channel, uint_t position) { 56 55 return s->data[channel][position]; 57 56 } 58 57 void fmat_put_channel(fmat_t *s, smpl_t * data, uint_t channel) { 58 s->data[channel] = data; 59 } 59 60 void fmat_get_channel(fmat_t *s, uint_t channel, fvec_t *output) { 60 61 output->data = s->data[channel]; 61 62 output->length = s->length; 62 63 return; 63 }64 65 smpl_t * fmat_get_channel_data(fmat_t *s, uint_t channel) {66 return s->data[channel];67 64 } 68 65
Note: See TracChangeset
for help on using the changeset viewer.