diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-10-27 00:10:12 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-10-27 00:10:12 +0000 |
commit | 148202d432cbb4a303b0008b9ff9d64bdab99a51 (patch) | |
tree | 517091453819687756e7f30a273ccab2d89acc27 /polyp/protocol-native.c | |
parent | da45617efc5e3be26d6410857a730c94b32fe24b (diff) |
support for latency interpolation
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@256 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/protocol-native.c')
-rw-r--r-- | polyp/protocol-native.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/polyp/protocol-native.c b/polyp/protocol-native.c index 3b816419..31ab4ab8 100644 --- a/polyp/protocol-native.c +++ b/polyp/protocol-native.c @@ -875,11 +875,13 @@ static void command_get_playback_latency(struct pa_pdispatch *pd, uint32_t comma struct pa_tagstruct *reply; struct playback_stream *s; struct timeval tv, now; + uint64_t counter; uint32_t index; assert(c && t); if (pa_tagstruct_getu32(t, &index) < 0 || pa_tagstruct_get_timeval(t, &tv) < 0 || + pa_tagstruct_getu64(t, &counter) < 0 || !pa_tagstruct_eof(t)) { protocol_error(c); return; @@ -907,6 +909,7 @@ static void command_get_playback_latency(struct pa_pdispatch *pd, uint32_t comma pa_tagstruct_put_timeval(reply, &tv); gettimeofday(&now, NULL); pa_tagstruct_put_timeval(reply, &now); + pa_tagstruct_putu64(reply, counter); pa_pstream_send_tagstruct(c->pstream, reply); } @@ -915,11 +918,13 @@ static void command_get_record_latency(struct pa_pdispatch *pd, uint32_t command struct pa_tagstruct *reply; struct record_stream *s; struct timeval tv, now; + uint64_t counter; uint32_t index; assert(c && t); if (pa_tagstruct_getu32(t, &index) < 0 || pa_tagstruct_get_timeval(t, &tv) < 0 || + pa_tagstruct_getu64(t, &counter) < 0 || !pa_tagstruct_eof(t)) { protocol_error(c); return; @@ -947,6 +952,7 @@ static void command_get_record_latency(struct pa_pdispatch *pd, uint32_t command pa_tagstruct_put_timeval(reply, &tv); gettimeofday(&now, NULL); pa_tagstruct_put_timeval(reply, &now); + pa_tagstruct_putu64(reply, counter); pa_pstream_send_tagstruct(c->pstream, reply); } |