init
TypeScriptstatic init(): AVAudioNodeSwift declarationinit()class · iOS 8.0+ · SDK 27.1
class AVAudioNodestatic init(): AVAudioNodeSwift declarationinit()inputFormat(bus: number): AVAudioFormatSwift declarationfunc inputFormat(forBus bus: AVAudioNodeBus) -> AVAudioFormatinstallTap(bus: number, bufferSize: number, format: (AVAudioFormat) | null, tapBlock: ((arg0: AVAudioPCMBuffer, arg1: AVAudioTime) => void)): voidSwift declarationfunc installTap(onBus bus: AVAudioNodeBus, bufferSize: AVAudioFrameCount, format: AVAudioFormat?, block tapBlock: @escaping AVAudioNodeTapBlock)nameForInputBus(bus: number): (string) | nullSwift declarationfunc name(forInputBus bus: AVAudioNodeBus) -> String?nameForOutputBus(bus: number): (string) | nullSwift declarationfunc name(forOutputBus bus: AVAudioNodeBus) -> String?outputFormat(bus: number): AVAudioFormatSwift declarationfunc outputFormat(forBus bus: AVAudioNodeBus) -> AVAudioFormatremoveTap(bus: number): voidSwift declarationfunc removeTap(onBus bus: AVAudioNodeBus)reset(): voidSwift declarationfunc reset()get engine(): (AVAudioEngine) | nullSwift declarationvar engine: AVAudioEngine? { get }get lastRenderTime(): (AVAudioTime) | nullSwift declarationvar lastRenderTime: AVAudioTime? { get }get latency(): numberSwift declarationvar latency: TimeInterval { get }get numberOfInputs(): numberSwift declarationvar numberOfInputs: Int { get }get numberOfOutputs(): numberSwift declarationvar numberOfOutputs: Int { get }get outputPresentationLatency(): numberSwift declarationvar outputPresentationLatency: TimeInterval { get }get auAudioUnit(): _AudioToolbox_AUAudioUnitSwift declaration@export(implementation) var auAudioUnit: AUAudioUnit { get }installAudioTap(bus: number, bufferSize: number, format: (AVAudioFormat) | null, tapProvider: ((arg0: AVReadOnlyAudioPCMBuffer, arg1: AVAudioTime) => void)): voidSwift declarationfunc installAudioTap(onBus bus: AVAudioNodeBus, bufferSize: AVAudioFrameCount, format: AVAudioFormat?, tapProvider: @escaping @Sendable (AVReadOnlyAudioPCMBuffer, AVAudioTime) -> Void) throwsInstall a tap on a bus using a sendable block This method installs a tap that receives read-only buffers safe for concurrent use. The tap block is sendable and can be safely called from any isolation domain. - Parameters: - bus: The node output bus to which to attach the tap - bufferSize: The requested size of incoming buffers in sample frames. Supported range is [100, 400] ms. - format: If non-nil, attempts to apply this as the format of the specified output bus - tapProvider: A sendable closure to be called with read-only audio buffers Only one tap may be installed on any bus. Taps may be safely installed and removed while the engine is running.
withAUAudioUnit(body: ((arg0: _AudioToolbox_AUAudioUnit) => unknown)): unknownSwift declarationfunc withAUAudioUnit<R, E>(_ body: (borrowing AUAudioUnit) throws(E) -> R) throws(E) -> R where E : ErrorProvides scoped access to the node's AUAudioUnit This method provides thread-safe, scoped access to the underlying AUAudioUnit. The audio unit reference is only valid within the closure and must not be retained or accessed outside of it. - Parameter body: A closure that receives the AUAudioUnit instance - Returns: The value returned by the closure - Throws: Rethrows any error thrown by the closure
No declarations were skipped in this snapshot.