Lines Matching refs:write
278 /* If socket write MTU is less than encoded frame size, there could be
279 * up to one write MTU of data left in encoder buffer from previous round.
284 * than write link MTU. Therefore each encoded frame is sent out completely
299 * and adjust SCO write size to be equal to last SCO read size. This makes
300 * write size less or equal to MTU size. Reserving the same number of encoded
341 written = u->transport->write(u->transport, u->stream_fd, u->encoder_buffer, u->encoder_buffer_used, u->write_link_mtu);
471 /* allow write side to find out size of last read packet */
699 pa_log_debug("Got invalid write MTU: %lu, rounding down", u->write_block_size);
1084 * the write index without conversion. */
1499 /* We just read something, so we are supposed to write something, too
1502 * expected write size needs to be adjusted accordingly.
1550 * false to enable POLLOUT. If there are more blocks to write, we want to
1552 * aren't currently any more blocks to write, then we'll have to wait
1644 * is not writable or there was no write pending. Set up a timer that
1651 /* There was no write pending on this iteration of the loop.
1655 /* pa_log("Sleeping for %lu; time passed %lu, next write at %lu", (unsigned long) sleep_for, (unsigned long) time_passed, (unsigned long)next_write_at); */
1670 /* We could not write because the stream was not ready. Let's try
1671 * again in 500 ms and drop audio if we still can't write. The
1672 * thread will also be woken up when we can write again. */