aboutsummaryrefslogtreecommitdiffstats
path: root/examples/alffplay.cpp
diff options
context:
space:
mode:
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;
}