Skip to content

osxaudio: Avoid using private APIs on iOS

Fixes #3506 (closed)

osxaudio: Avoid using private APIs on iOS

Turns out AudioConvertHostTimeToNanos and AudioGetCurrentHostTime are macOS-only APIs, which prevents apps using
GStreamer on iOS from being accepted into App Store.

This commit replaces those functions with a manual version of what they do - mach_absolute_time() for the current time,
and data from mach_timebase_info() at the beginning to convert host timestamps to nanoseconds.
Edited by Piotr Brzeziński

Merge request reports

Loading