Changeset a6356d4
- Timestamp:
- Mar 17, 2017, 7:02:17 PM (8 years ago)
- Branches:
- sampler
- Children:
- 33cc712
- Parents:
- 95af88b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/utils/ringbuffer.c
r95af88b ra6356d4 45 45 if (o->write_pos + write <= o->buffer->length) { 46 46 // write everything at once 47 fvec_t tmp; tmp.data = o->buffer->data + o->write_pos; tmp.length = write; 48 fvec_t tmpin; tmpin.data = input->data; tmpin.length = write; 47 fvec_t tmp, tmpin; 48 tmp.data = o->buffer->data + o->write_pos; tmp.length = write; 49 tmpin.data = input->data; tmpin.length = write; 49 50 //assert(tmpin.length == tmp.length); 50 51 fvec_copy(&tmpin, &tmp); … … 111 112 if (o->read_pos + request <= o->buffer->length) { 112 113 // read everything at once 113 fvec_t tmp; tmp.data = o->buffer->data + o->read_pos; tmp.length = request; 114 fvec_t tmpout; tmpout.data = output->data; tmpout.length = request; 114 fvec_t tmp, tmpout; 115 tmp.data = o->buffer->data + o->read_pos; tmp.length = request; 116 tmpout.data = output->data; tmpout.length = request; 115 117 //assert(tmpout.length == tmp.length); 116 118 fvec_copy(&tmp, &tmpout);
Note: See TracChangeset
for help on using the changeset viewer.