Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVAudioTimeMBS class.

AVAudioTimeMBS.available as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether this class is available for use.

Should return true on OS X 10.10 and newer.

AVAudioTimeMBS.hostTimeForSeconds(Seconds as Double) as UInt64

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Converts seconds to host time.

seconds: The number of seconds.
Returns the seconds represented as host time.

AVAudioTimeMBS.secondsForHostTime(HostTime as UInt64) as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Converts host time to seconds.

hostTime: The host time.
Returns the host time represented as seconds.

AVAudioTimeMBS.timeWithHostTime(HostTime as UInt64) as AVAudioTimeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an audio time object with the specified host time.

hostTime: The host time.
Returns a newly created and initialized AVAudioTime instance with the extrapolated time.

See also:

AVAudioTimeMBS.timeWithHostTime(hostTime as UInt64, SampleTime as Int64, sampleRate as Double) as AVAudioTimeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an audio time object with the specified host time, sample time, and sample rate.

hostTime: The host time.
sampleTime: The sample time.
sampleRate: The sample rate.

Returns a newly created and initialized AVAudioTime instance with the specified host time, sample time, and sample rate.

See also:

AVAudioTimeMBS.timeWithSampleTime(SampleTime as Int64, sampleRate as Double) as AVAudioTimeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method AVFoundationNode MBS AVFoundation Plugin 15.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates an audio time object with the specified sample time and sample rate.
Example
Dim t As AVAudioTimeMBS = AVAudioTimeMBS.timeWithSampleTime(60000, 1000) // 60s

sampleTime: The sample time.
sampleRate: The sample rate.

Returns a newly created and initialized AVAudioTime instance with the specified sample time and sample rate.

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


The biggest plugin in space...