X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=time.c;h=0ebc6ec0c8f3f10e66f77ffe18d0f8fe05d7210a;hp=1fd7b0981584fc4557079ee62a87fbd713554f3a;hb=dded41e5bed40cca8876e1056351cc1dbab309d0;hpb=97727c2e95cce064e03f495e97119cae447397d7 diff --git a/time.c b/time.c index 1fd7b098..0ebc6ec0 100644 --- a/time.c +++ b/time.c @@ -170,6 +170,16 @@ int tv_convex_combination(const long a, const struct timeval *tv1, return ret; } +/** + * Compute when to send a chunk of an audio file. + * + * \param chunk_num The number of the chunk. + * \param chunk_tv The duration of one chunk. + * \param stream_start When the first chunk was sent. + * \param result The time when to send chunk number \a chunk_num. + * + * This function computes stream_start + chunk_num * chunk_time. + */ void compute_chunk_time(long unsigned chunk_num, struct timeval *chunk_tv, struct timeval *stream_start, struct timeval *result)