Platforms to show: All Mac Windows Linux Cross-Platform
AVAudioTimeMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | AVFoundationNode | MBS AVFoundation Plugin | 15.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Instances of the class are immutable.
A single moment in time may be represented in two different ways:
- Using mach_absolute_time(), the system's basic clock. Referred to as “host time.”
- Audio samples at a particular sample rate.
A single AVAudioTime instance may contain either or both representations; it might represent only a sample time, only a host time, or both.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 6 properties
- property Handle as Integer
- property hostTime as UInt64
- property hostTimeValid as Boolean
- property sampleRate as Double
- property sampleTime as Int64
- property sampleTimeValid as Boolean
- 2 methods
- method Constructor Private
- method extrapolateTimeFromAnchor(anchorTime as AVAudioTimeMBS) as AVAudioTimeMBS
- 6 shared methods
- shared method available as boolean
- shared method hostTimeForSeconds(Seconds as Double) as UInt64
- shared method secondsForHostTime(HostTime as UInt64) as Double
- shared method timeWithHostTime(HostTime as UInt64) as AVAudioTimeMBS
- shared method timeWithHostTime(hostTime as UInt64, SampleTime as Int64, sampleRate as Double) as AVAudioTimeMBS
- shared method timeWithSampleTime(SampleTime as Int64, sampleRate as Double) as AVAudioTimeMBS
This class has no sub classes.
Some methods using this class:
- AVAudioPlayerNodeMBS.nodeTimeForPlayerTime(playerTime as AVAudioTimeMBS) as AVAudioTimeMBS
- AVAudioPlayerNodeMBS.playAtTime(time as AVAudioTimeMBS = nil)
- AVAudioPlayerNodeMBS.playerTimeForNodeTime(nodeTime as AVAudioTimeMBS) as AVAudioTimeMBS
- AVAudioPlayerNodeMBS.scheduleBuffer(buffer as AVAudioPCMBufferMBS, time as AVAudioTimeMBS, options as Integer, tag as Variant = nil)
- AVAudioPlayerNodeMBS.scheduleBuffer(callbackType as Integer, buffer as AVAudioPCMBufferMBS, time as AVAudioTimeMBS, options as Integer, tag as Variant = nil)
- AVAudioPlayerNodeMBS.scheduleFile(callbackType as Integer, file as AVAudioFileMBS, time as AVAudioTimeMBS, tag as Variant = nil)
- AVAudioPlayerNodeMBS.scheduleFile(file as AVAudioFileMBS, time as AVAudioTimeMBS, tag as Variant = nil)
- AVAudioPlayerNodeMBS.scheduleSegment(callbackType as Integer, file as AVAudioFileMBS, time as AVAudioTimeMBS, startFrame as Int64, frameCount as Int64, tag as Variant = nil)
- AVAudioPlayerNodeMBS.scheduleSegment(file as AVAudioFileMBS, time as AVAudioTimeMBS, startFrame as Int64, frameCount as Int64, tag as Variant = nil)
Some properties using for this class:
- AVAudioNodeMBS.lastRenderTime as AVAudioTimeMBS
Some events using this class:
- AVAudioNodeMBS.Tap(bus as Integer, bufferSize as UInt32, format as AVAudioFormatMBS, buffer as AVAudioPCMBufferMBS, time as AVAudioTimeMBS, tag as Variant)
- AVAudioPlayerNodeMBS.scheduleBufferCompleted(callbackType as Integer, buffer as AVAudioPCMBufferMBS, time as AVAudioTimeMBS, options as Integer, tag as Variant)
- AVAudioPlayerNodeMBS.scheduleFileCompleted(callbackType as Integer, file as AVAudioFileMBS, time as AVAudioTimeMBS, tag as Variant)
- AVAudioPlayerNodeMBS.scheduleSegmentCompleted(callbackType as Integer, file as AVAudioFileMBS, startFrame as Int64, frameCount as Int64, time as AVAudioTimeMBS, tag as Variant)
Some examples using this class:
- /AVFoundation/AVAudioEngine/Player
- /AVFoundation/AVAudioEngine/Player with AudioUnit for Level Meter
The items on this page are in the following plugins: MBS AVFoundation Plugin.
AVAudioRecorderMBS - AVAudioUnitComponentManagerMBS