This is a resurrection of a feature previously removed. The new version
is without the race condition of the original one.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@442
fefdeb5f-60dc-0310-8127-
8f9354f1896f
enum pa_stream_direction direction;
uint32_t requested_bytes;
uint64_t counter;
+ pa_usec_t previous_time;
+ pa_usec_t previous_ipol_time;
enum pa_stream_state state;
struct pa_mcalign *mcalign;
s->mcalign = pa_mcalign_new(pa_frame_size(ss), c->memblock_stat);
s->counter = 0;
+ s->previous_time = 0;
+ s->previous_ipol_time = 0;
s->corked = 0;
s->interpolate = 0;
}
}
+ if (usec < s->previous_time)
+ usec = s->previous_time;
+
+ s->previous_time = usec;
+
return usec;
}
usec = s->ipol_usec + pa_timeval_age(&s->ipol_timestamp);
}
+ if (usec < s->previous_ipol_time)
+ usec = s->previous_ipol_time;
+
+ s->previous_ipol_time = usec;
+
return usec;
}