Lines Matching defs:length

151     /* We initialize the target length here, so that if the user
1054 attr->maxlength = 4*1024*1024; /* 4MB is the maximum queue length PulseAudio <= 0.9.9 supported. */
1514 size_t length,
1532 ((const char*) data + length <= (const char*) s->write_data + pa_memblock_get_length(s->write_memblock))),
1535 PA_CHECK_VALIDITY(s->context, length % pa_frame_size(&s->sample_spec) == 0, PA_ERR_INVALID);
1547 chunk.length = length;
1558 size_t t_length = length;
1570 chunk.length = t_length;
1578 chunk.length = PA_MIN(t_length, blk_size_max);
1579 chunk.memblock = pa_memblock_new(s->context->mempool, chunk.length);
1582 memcpy(d, t_data, chunk.length);
1591 t_data = (const uint8_t*) t_data + chunk.length;
1592 t_length -= chunk.length;
1603 s->requested_bytes -= (seek == PA_SEEK_RELATIVE ? offset : 0) + (int64_t) length;
1606 pa_log_debug("wrote %lli, now at %lli", (long long) length, (long long) s->requested_bytes);
1617 s->write_index_corrections[s->current_write_index_correction].value = offset + (int64_t) length;
1620 s->write_index_corrections[s->current_write_index_correction].value += offset + (int64_t) length;
1630 s->timing_info.write_index = offset + (int64_t) length;
1633 s->timing_info.write_index += offset + (int64_t) length;
1648 size_t length,
1653 return pa_stream_write_ext_free(s, data, length, free_cb, (void*) data, offset, seek);
1656 int pa_stream_peek(pa_stream *s, const void **data, size_t *length) {
1660 pa_assert(length);
1671 *length = 0;
1678 *length = s->peek_memchunk.length;
1687 *length = s->peek_memchunk.length;
1698 PA_CHECK_VALIDITY(s->context, s->peek_memchunk.length > 0, PA_ERR_BADSTATE);
1700 pa_memblockq_drop(s->record_memblockq, s->peek_memchunk.length);
1704 s->timing_info.read_index += (int64_t) s->peek_memchunk.length;