OBS Studio - Free and open source software for live streaming and screen recording
mac-capture: Adjust mHostTime to milliseconds
The timestamp returned by mHostTime in the AudioTimeStamp structure is the current timestamp equivalent to mach_absolute_time(), which is relative to the machine's time base. In order to convert this to milliseconds, it's necessary to get the host's timebase with mach_timebase_info() and scale the timestamp accordingly, since the rest of the timestamp synchronization code expects the timestamp to be in milliseconds. This is effectively equivalent to the code which was previously in libobs/util/platform-coca.m, but must be applied here instead.
D
Doug Kelly committed
5d711ebbda9c81120a11420fc0d2862d85747252
Parent: 4ab5a3b
Committed by Jim <obs.jim@gmail.com>
on 3/1/2021, 3:00:43 AM