mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
alsa: throw timing data away after device resume
This commit is contained in:
parent
f6763917ee
commit
5efb07281d
5 changed files with 30 additions and 25 deletions
|
|
@ -899,9 +899,13 @@ static int unsuspend(struct userdata *u) {
|
|||
if (build_pollfd(u) < 0)
|
||||
goto fail;
|
||||
|
||||
u->write_count = 0;
|
||||
pa_smoother_reset(u->smoother, pa_rtclock_now(), TRUE);
|
||||
|
||||
u->first = TRUE;
|
||||
u->since_start = 0;
|
||||
|
||||
|
||||
pa_log_info("Resumed successfully...");
|
||||
|
||||
return 0;
|
||||
|
|
@ -1204,7 +1208,7 @@ static int process_rewind(struct userdata *u) {
|
|||
if (rewind_nbytes <= 0)
|
||||
pa_log_info("Tried rewind, but was apparently not possible.");
|
||||
else {
|
||||
u->write_count -= out_frames * u->frame_size;
|
||||
u->write_count -= rewind_nbytes;
|
||||
pa_log_debug("Rewound %lu bytes.", (unsigned long) rewind_nbytes);
|
||||
pa_sink_process_rewind(u->sink, rewind_nbytes);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue