Platforms to show: All Mac Windows Linux Cross-Platform

Back to CoreAudioMBS class.

CoreAudioMBS.CoreAudioConvertHostTimeToNanosMBS(inHostTime as UInt64) as UInt64

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Audio MBS MacOSX Plugin 7.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Convert the given host time to a time in Nanoseconds.
Example

Dim value1 As UInt64 = CoreAudioMBS.CoreAudioGetCurrentHostTimeMBS
Dim value2 As UInt64 = CoreAudioMBS.CoreAudioGetCurrentHostTimeMBS
Dim value3 As UInt64 = CoreAudioMBS.CoreAudioGetCurrentHostTimeMBS

Dim time1 As UInt64 = CoreAudioMBS.CoreAudioConvertHostTimeToNanosMBS(value1)
Dim time2 As UInt64 = CoreAudioMBS.CoreAudioConvertHostTimeToNanosMBS(value2)
Dim time3 As UInt64 = CoreAudioMBS.CoreAudioConvertHostTimeToNanosMBS(value3)

// HostTime and Nanoseconds can be same on Intel Macs
// on Apple Silicon they are not the same!

Break

Returns 0 on any error.

CoreAudioMBS.CoreAudioConvertNanosToHostTimeMBS(inNanos as UInt64) as UInt64

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Audio MBS MacOSX Plugin 7.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Convert the given Nanoseconds time to a time in the host clock's time base.

Returns 0 on any error.

CoreAudioMBS.CoreAudioGetCurrentHostTimeMBS as UInt64

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Audio MBS MacOSX Plugin 7.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Retrieve the current host time value.
Example

Dim value1 As UInt64 = CoreAudioMBS.CoreAudioGetCurrentHostTimeMBS
Dim value2 As UInt64 = CoreAudioMBS.CoreAudioGetCurrentHostTimeMBS
Dim value3 As UInt64 = CoreAudioMBS.CoreAudioGetCurrentHostTimeMBS

Break // you see how it changes and how long a function call can take

Returns 0 on any error.

CoreAudioMBS.CoreAudioGetHostClockFrequencyMBS as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Audio MBS MacOSX Plugin 7.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Retrieve the number of ticks per second of the host clock.
Example

Dim value As Double = CoreAudioMBS.CoreAudioGetHostClockFrequencyMBS
MessageBox value.ToString // 1 billion

CoreAudioMBS.GetHostClockMinimumTimeDeltaMBS as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Audio MBS MacOSX Plugin 4.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Retrieve the smallest number of ticks difference between two succeeding values of the host clock.
Example

Dim value As Integer = CoreAudioMBS.GetHostClockMinimumTimeDeltaMBS
MessageBox value.ToString // 1

For instance, if this value is 5 and the first value of the host clock is X then the next time after X will be at greater than or equal X+5.
Returns an unsigned integer value.

The items on this page are in the following plugins: MBS MacOSX Plugin.


The biggest plugin in space...