mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
perl -p -i -e 's/pa_rtclock_usec/pa_rtclock_now/g' find . -name '*.[ch]'
This commit is contained in:
parent
6ad3855639
commit
5dcdd5e358
18 changed files with 66 additions and 66 deletions
|
|
@ -282,7 +282,7 @@ static void thread_func(void *userdata) {
|
|||
pa_thread_mq_install(&u->thread_mq);
|
||||
pa_rtpoll_install(u->rtpoll);
|
||||
|
||||
u->thread_info.timestamp = pa_rtclock_usec();
|
||||
u->thread_info.timestamp = pa_rtclock_now();
|
||||
u->thread_info.in_null_mode = FALSE;
|
||||
|
||||
for (;;) {
|
||||
|
|
@ -296,7 +296,7 @@ static void thread_func(void *userdata) {
|
|||
if (PA_SINK_IS_OPENED(u->sink->thread_info.state) && !u->thread_info.active_outputs) {
|
||||
pa_usec_t now;
|
||||
|
||||
now = pa_rtclock_usec();
|
||||
now = pa_rtclock_now();
|
||||
|
||||
if (!u->thread_info.in_null_mode || u->thread_info.timestamp <= now)
|
||||
process_render_null(u, now);
|
||||
|
|
@ -664,16 +664,16 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
|
|||
pa_atomic_store(&u->thread_info.running, PA_PTR_TO_UINT(data) == PA_SINK_RUNNING);
|
||||
|
||||
if (PA_PTR_TO_UINT(data) == PA_SINK_SUSPENDED)
|
||||
pa_smoother_pause(u->thread_info.smoother, pa_rtclock_usec());
|
||||
pa_smoother_pause(u->thread_info.smoother, pa_rtclock_now());
|
||||
else
|
||||
pa_smoother_resume(u->thread_info.smoother, pa_rtclock_usec(), TRUE);
|
||||
pa_smoother_resume(u->thread_info.smoother, pa_rtclock_now(), TRUE);
|
||||
|
||||
break;
|
||||
|
||||
case PA_SINK_MESSAGE_GET_LATENCY: {
|
||||
pa_usec_t x, y, c, *delay = data;
|
||||
|
||||
x = pa_rtclock_usec();
|
||||
x = pa_rtclock_now();
|
||||
y = pa_smoother_get(u->thread_info.smoother, x);
|
||||
|
||||
c = pa_bytes_to_usec(u->thread_info.counter, &u->sink->sample_spec);
|
||||
|
|
@ -730,7 +730,7 @@ static int sink_process_msg(pa_msgobject *o, int code, void *data, int64_t offse
|
|||
case SINK_MESSAGE_UPDATE_LATENCY: {
|
||||
pa_usec_t x, y, latency = (pa_usec_t) offset;
|
||||
|
||||
x = pa_rtclock_usec();
|
||||
x = pa_rtclock_now();
|
||||
y = pa_bytes_to_usec(u->thread_info.counter, &u->sink->sample_spec);
|
||||
|
||||
if (y > latency)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue