diff options
author | Chris Robinson <[email protected]> | 2018-11-20 12:32:42 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-20 12:32:42 -0800 |
commit | dc8ef8264a458282ebad15a6a1b4027cc139cc59 (patch) | |
tree | 0915e32245b0e4b2dd2ca508f24c86cfcbd7c6a5 /examples/alffplay.cpp | |
parent | f3e01ae9d4f4028f36652ae1e81bbe5bf33389bb (diff) |
Try to improve alffplay underrun device time adjustment
Diffstat (limited to 'examples/alffplay.cpp')
-rw-r--r-- | examples/alffplay.cpp | 2 |
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; } |