CoreAudioMBS shared methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem