Logo Search packages:      
Sourcecode: pulseaudio version File versions  Download package

pa_time_event* pa_context_rttime_new ( pa_context c,
pa_usec_t  usec,
pa_time_event_cb_t  cb,
void *  userdata 
)

Create a new timer event source for the specified time (wrapper for mainloop->time_new).

Since:
0.9.16

Definition at line 1474 of file context.c.

References PA_USEC_INVALID.

                                                                                                           {
    struct timeval tv;

    pa_assert(c);
    pa_assert(c->mainloop);

    if (usec == PA_USEC_INVALID)
        return c->mainloop->time_new(c->mainloop, NULL, cb, userdata);

    pa_timeval_rtstore(&tv, usec, c->use_rtclock);

    return c->mainloop->time_new(c->mainloop, &tv, cb, userdata);
}


Generated by  Doxygen 1.6.0   Back to index