diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-09-16 00:05:56 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-09-16 00:05:56 +0000 |
commit | f9e2058820c2a51994708ad11d1ed8e09b12b8b1 (patch) | |
tree | 5277545f0b8b9534590d20c32d0d3e1acc2a9982 /polyp/iochannel.c | |
parent | f5d47a293aa32a8273ef02c597cb263527726465 (diff) |
add input latency measurement
add GETOSPACE support to module-oss
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@205 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/iochannel.c')
-rw-r--r-- | polyp/iochannel.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/polyp/iochannel.c b/polyp/iochannel.c index 1aa70b93..72bdac20 100644 --- a/polyp/iochannel.c +++ b/polyp/iochannel.c @@ -229,3 +229,14 @@ int pa_iochannel_socket_set_sndbuf(struct pa_iochannel *io, size_t l) { assert(io); return pa_socket_set_sndbuf(io->ofd, l); } + +void pa_iochannel_force_unreadable(struct pa_iochannel *io) { + assert(io); + io->readable = 0; + enable_mainloop_sources(io); +} + +void pa_iochannel_force_unwritable(struct pa_iochannel *io) { + io->writable = 0; + enable_mainloop_sources(io); +} |