Changeset 128589e
- Timestamp:
- Oct 9, 2016, 8:03:29 PM (8 years ago)
- Branches:
- sampler
- Children:
- f253b03
- Parents:
- fefbbd8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/utils/ringbuffer.c
rfefbbd8 r128589e 47 47 fvec_t tmp; tmp.data = o->buffer->data + o->write_pos; tmp.length = write; 48 48 fvec_t tmpin; tmpin.data = input->data; tmpin.length = write; 49 assert(tmpin.length == tmp.length);49 //assert(tmpin.length == tmp.length); 50 50 fvec_copy(&tmpin, &tmp); 51 51 … … 70 70 tmpin.data = input->data; 71 71 tmpin.length = remaining; 72 assert(tmpin.length == tmp.length);72 //assert(tmpin.length == tmp.length); 73 73 fvec_copy(&tmpin, &tmp); 74 74 } … … 78 78 tmpin.data = input->data + remaining; 79 79 tmpin.length = write - remaining; 80 assert(tmpin.length == tmp.length);80 //assert(tmpin.length == tmp.length); 81 81 fvec_copy(&tmpin, &tmp); 82 82 //AUBIO_WRN("ringbuffer: push2: changing write_pos from %d\n", o->write_pos); … … 94 94 95 95 uint_t aubio_ringbuffer_pull(aubio_ringbuffer_t *o, fvec_t *output, uint_t request) { 96 if (o->available < = 0) {96 if (o->available < (sint_t)request) { 97 97 AUBIO_ERR("ringbuffer: pull: requested %d but %d available\n", 98 98 request, o->available); … … 113 113 fvec_t tmp; tmp.data = o->buffer->data + o->read_pos; tmp.length = request; 114 114 fvec_t tmpout; tmpout.data = output->data; tmpout.length = request; 115 assert(tmpout.length == tmp.length);115 //assert(tmpout.length == tmp.length); 116 116 fvec_copy(&tmp, &tmpout); 117 117 //AUBIO_WRN("ringbuffer: pull1: changing read_pos from %d\n", o->read_pos); … … 131 131 tmpout.data = output->data; 132 132 tmpout.length = remaining; 133 assert(tmpout.length == tmp.length);133 //assert(tmpout.length == tmp.length); 134 134 fvec_copy(&tmpout, &tmp); 135 135 // write start … … 138 138 tmpout.data = output->data + remaining; 139 139 tmpout.length = request - remaining; 140 assert(tmpout.length == tmp.length);140 //assert(tmpout.length == tmp.length); 141 141 fvec_copy(&tmp, &tmpout); 142 142 //AUBIO_WRN("ringbuffer: pull2: changing read_pos from %d\n", o->read_pos);
Note: See TracChangeset
for help on using the changeset viewer.