objc2_core_audio/generated/HostTime.rs
1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3
4use crate::*;
5
6extern "C-unwind" {
7 /// Gets the current host time.
8 ///
9 /// Returns: A UInt64 containing the current host time.
10 pub fn AudioGetCurrentHostTime() -> u64;
11}
12
13extern "C-unwind" {
14 /// Gets the number of ticks per second in the host time base.
15 ///
16 /// Returns: A Float64 containing the number of ticks per second in the host time base.
17 pub fn AudioGetHostClockFrequency() -> f64;
18}
19
20extern "C-unwind" {
21 /// Gets the smallest number of ticks that two succeeding values will ever differ.
22 /// by.
23 ///
24 /// Returns: A UInt32 containing the smallest number of ticks that two succeeding values will
25 /// ever differ.
26 pub fn AudioGetHostClockMinimumTimeDelta() -> u32;
27}
28
29extern "C-unwind" {
30 /// Convert the given host time into a time in nanoseconds.
31 ///
32 /// Parameter `inHostTime`: A UInt64 containing the host time to convert.
33 ///
34 /// Returns: A UInt64 containining the converted host time.
35 pub fn AudioConvertHostTimeToNanos(in_host_time: u64) -> u64;
36}
37
38extern "C-unwind" {
39 /// Convert the given nanosecond time into a host time.
40 ///
41 /// Parameter `inNanos`: A UInt64 containing the nanosecond time to convert.
42 ///
43 /// Returns: A UInt64 containining the converted nanosecond time.
44 pub fn AudioConvertNanosToHostTime(in_nanos: u64) -> u64;
45}