mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
Adapt win32 specific code to current API
This commit is contained in:
parent
4f1d4044f8
commit
0ac0479534
3 changed files with 29 additions and 5 deletions
|
|
@ -133,7 +133,7 @@ static void message_cb(pa_mainloop_api*a, pa_time_event*e, const struct timeval
|
|||
}
|
||||
|
||||
pa_timeval_add(pa_gettimeofday(&tvnext), 100000);
|
||||
a->rtclock_time_restart(e, &tvnext);
|
||||
a->time_restart(e, &tvnext);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
@ -980,7 +980,7 @@ int main(int argc, char *argv[]) {
|
|||
#endif
|
||||
|
||||
#ifdef OS_IS_WIN32
|
||||
win32_timer = pa_mainloop_get_api(mainloop)->rtclock_time_new(pa_mainloop_get_api(mainloop), pa_gettimeofday(&win32_tv), message_cb, NULL);
|
||||
win32_timer = pa_mainloop_get_api(mainloop)->time_new(pa_mainloop_get_api(mainloop), pa_gettimeofday(&win32_tv), message_cb, NULL);
|
||||
#endif
|
||||
|
||||
if (!conf->no_cpu_limit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue