Add seq and rtptime params to record/flush with a view to using these for timing and device suspension

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2500 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Colin Guthrie 2008-06-09 21:59:41 +00:00
parent 651da7d095
commit 5f527dc479
3 changed files with 21 additions and 9 deletions

View file

@ -90,6 +90,9 @@ struct pa_raop_client {
pa_socket_client *sc;
int fd;
uint16_t seq;
uint32_t rtptime;
pa_raop_client_cb_t callback;
void* userdata;
pa_raop_client_closed_cb_t closed_callback;
@ -317,7 +320,7 @@ static void rtsp_cb(pa_rtsp_client *rtsp, pa_rtsp_state state, pa_headerlist* he
} else {
pa_log_warn("Audio Jack Status missing");
}
pa_rtsp_record(c->rtsp);
pa_rtsp_record(c->rtsp, &c->seq, &c->rtptime);
break;
}
@ -403,8 +406,6 @@ void pa_raop_client_free(pa_raop_client* c)
}
static void noop(PA_GCC_UNUSED void* p) {}
int pa_raop_client_encode_sample(pa_raop_client* c, pa_memchunk* raw, pa_memchunk* encoded)
{
uint16_t len;