Skip to content

Commit 3885ca9

Browse files
committed
Update audiounit position calculation
1 parent 24cea32 commit 3885ca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cubeb_audiounit.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2972,7 +2972,7 @@ audiounit_stream_get_position(cubeb_stream * stm, uint64_t * position)
29722972
if (stm->current_latency_frames > stm->frames_played) {
29732973
*position = 0;
29742974
} else {
2975-
*position = stm->frames_played - stm->current_latency_frames;
2975+
*position = stm->frames_played - (stm->current_latency_frames + cubeb_resampler_latency(stm->resampler.get()));
29762976
}
29772977
return CUBEB_OK;
29782978
}

0 commit comments

Comments
 (0)