aboutsummaryrefslogtreecommitdiffstats
path: root/examples/alffplay.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-20 12:32:42 -0800
committerChris Robinson <[email protected]>2018-11-20 12:32:42 -0800
commitdc8ef8264a458282ebad15a6a1b4027cc139cc59 (patch)
tree0915e32245b0e4b2dd2ca508f24c86cfcbd7c6a5 /examples/alffplay.cpp
parentf3e01ae9d4f4028f36652ae1e81bbe5bf33389bb (diff)
Try to improve alffplay underrun device time adjustment
Diffstat (limited to 'examples/alffplay.cpp')
-rw-r--r--examples/alffplay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/alffplay.cpp b/examples/alffplay.cpp
index f02fb16b..771e5ded 100644
--- a/examples/alffplay.cpp
+++ b/examples/alffplay.cpp
@@ -1002,7 +1002,7 @@ int AudioState::handler()
ALC_DEVICE_CLOCK_SOFT, 1, &devtime);
auto device_time = nanoseconds{devtime};
- mDeviceStartTime = device_time - mCurrentPts;
+ mDeviceStartTime = device_time - mCurrentPts + AudioBufferTotalTime;
}
continue;
}