iOS reference / AVFAudio / AVAudioUnitAVFAudio · IOS API REFERENCE
AVAudioUnit class · iOS 8.0+ · SDK 27.1
class AVAudioUnitMembers (9) static · iOS 9.0+ instantiate TypeScript static instantiate(audioComponentDescription: _AudioToolbox_AudioComponentDescription, options: _AudioToolbox_AudioComponentInstantiationOptions, completionHandler: ((arg0: (AVAudioUnit) | null, arg1: (NativeError) | null) => void)): voidSwift declaration class func instantiate(with audioComponentDescription: AudioComponentDescription, options: AudioComponentInstantiationOptions = []) async throws -> AVAudioUnitinit init TypeScript static init(): AVAudioUnitSwift declaration init()method · iOS 8.0+ loadPreset TypeScript loadPreset(url: string): voidSwift declaration func loadPreset(at url: URL) throwsget · iOS 8.0+ audioComponentDescription TypeScript get audioComponentDescription(): _AudioToolbox_AudioComponentDescriptionSwift declaration var audioComponentDescription: AudioComponentDescription { get }get · iOS 8.0+ manufacturerName TypeScript get manufacturerName(): stringSwift declaration var manufacturerName: String { get }get · iOS 8.0+ name TypeScript get name(): stringSwift declaration var name: String { get }get · iOS 8.0+ version TypeScript get version(): numberSwift declaration var version: Int { get }get · iOS 8.0+ · Deprecated in iOS 27.0 audioUnit TypeScript get audioUnit(): SDKHandleSwift declaration @export(implementation) var audioUnit: AudioUnit { get }method · iOS 27.0+ withAudioUnit TypeScript withAudioUnit(body: ((arg0: SDKHandle) => unknown)): unknownSwift declaration func withAudioUnit<R, E>(_ body: (borrowing AudioUnit) throws(E) -> R) throws(E) -> R where E : ErrorProvides scoped access to the audio unit's AudioUnit
This method provides thread-safe, scoped access to the underlying AudioUnit.
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 AudioUnit instance
- Returns: The value returned by the closure
- Throws: Rethrows any error thrown by the closure
Skipped declarations No declarations were skipped in this snapshot.
All AVFAudio types →