Symbols: 99.6% of Apple's iOS API (2811 of 2823, exact) · Rows: 18: 12 ✅ 4 🟡 2 ❌ · iOS: 2.0+
Area: Media · Apple: AudioToolbox · Issues: area:media
- Adapted: isim's own Audio Units, AUGraph and queues on the mixer; codecs through the host's libavcodec.
- Objective-C / C interface:
<AudioToolbox/AudioToolbox.h>(isim/sdk-src/Frameworks/AudioToolbox: Apple's header set,AudioComponent.h…AudioServices.h, plus<MacTypes.h>) over the same Swift implementation:swift/overlays/AudioToolbox/CAPI.swiftexports each C function (@_cdecl), andAudioToolbox.frameworkre-exportslibswiftAudioToolbox, so anAudioUnitorAudioQueueRefmade in C is the object Swift code sees (SDL, FMOD, OpenAL and miniaudio use this interface). Music Player, Music Device, Audio File Stream and CAClock (MusicPlayer.h,MusicDevice.h,AudioFileStream.h,CAClock.h, issue #389) are exported byCAPIMusic.swiftthe same way.
| API / feature | Status | iOS | Notes |
|---|---|---|---|
AudioToolbox System Sound Services (AudioServicesCreateSystemSoundID, PlaySystemSound, completions) |
✅ | ≤17 | sounds from files play; built-in IDs are synthesized (adapted: Apple's recordings are not shipped): dial-pad DTMF tones at their standard frequencies, the camera shutter, clicks, chimes; tested (HelloAudio) |
kSystemSoundID_Vibrate, AudioServicesPlayAlertSound vibration |
✅ | ≤17 | adapted (no vibration motor, like the Simulator): logged (isim: haptic vibrate) and shown as a large ring like UIKit's feedback generators; peek / pop / nope IDs vibrate too; tested (HelloAudio) |
Audio File Services (AudioFileOpenURL, AudioFileCreateWithURL, properties, read/write bytes and packets) |
✅ | ≤17 | PCM WAV/AIFF/CAF read and written directly; compressed files are decoded by the host (then presented as 48 kHz float, adapted); tested |
Extended Audio File Services (ExtAudioFile*: client format, read, write, seek) |
✅ | ≤17 | client-format conversion (sample type, channels, rate); compressed file types are written as PCM and encoded by ffmpeg on dispose (unverified); tested: WAV → 48 kHz mono float, CAF write |
Audio Converter Services (AudioConverterNew, ConvertBuffer, FillComplexBuffer, ConvertComplexBuffer, properties) |
✅ | ≤17 | linear PCM ↔ linear PCM (format, channels, resampling with a band-limited resampler, prime info); AAC encoding and AAC / MP3 decoding through the host's libavcodec (magic cookies, bit rate, maximum packet size; ADTS / ESDS); other codecs return kAudioConverterErr_FormatNotSupported; tested (HelloMedia: PCM conversion, AAC round trip) |
Audio Queue Services (output and input queues, buffers, start/pause/stop, volume, rate, pitch, pan, current time, level metering, processing taps, IsRunning listener) |
✅ | ≤17 | adapted: output pulled by the host mixer in real time (silently when headless) with isim's time-pitch and pan; input from the simulated microphone; processing taps; kAudioQueueProperty_IsRunning is Apple's 'aqrn' (isim before 0.26 used 'aqru'); tested (HelloAudio: callbacks, time, input peak; HelloAudio -engine: rate and pitch seen by a processing tap, pan in the mixer output) |
Audio Units (AudioComponent, AudioUnit properties / parameters / render callbacks, Remote IO, AUGraph) |
✅ | ≤17 | adapted: isim's units — Remote IO and Voice Processing IO (output and input), generic output, multichannel mixer (volume, pan, metering), AUConverter, varispeed, time-pitch, delay, reverb, N-band / parametric EQ, low / high / band pass and shelf filters, distortion, peak limiter; render callbacks and notifications, AudioUnitRender pull, property listeners; AUGraph nodes, connections and callbacks; no third-party Audio Unit extensions (AUv3); tested (HelloAudio -engine: an AUGraph callback → mixer → Remote IO with render notify, the Remote IO input bus, generic output pulling AUConverter, AudioUnitProcess with the delay) |
C interface: #import <AudioToolbox/AudioToolbox.h>, -framework AudioToolbox (or -framework AudioUnit, which re-exports it): AudioComponentFindNext, AudioComponentInstanceNew, AudioComponentInstantiate, AudioUnitSetProperty / GetProperty / GetPropertyInfo, parameters, listeners, render notify, AudioUnitRender / Process, AudioOutputUnitStart / Stop, AUGraph…, AudioQueueNew… (including …WithDispatchQueue blocks), buffers, properties, processing taps, AudioFile…, ExtAudioFile…, AudioConverter…, AudioServices…; the constants with Apple's values |
✅ | ≤17 | passthrough to the Swift functions above (same objects in both languages); C's Boolean and the run loop arguments as in the Swift versions (run loop callbacks on the main queue); dispatch-queue blocks run on the caller's queue; tested (AudioToolboxCTest: Objective-C and plain C) |
Music Sequence (NewMusicSequence, DisposeMusicSequence, tracks, the tempo track, MusicTrackNew…Event for every event type, MusicTrackGetProperty / SetProperty (loop info, offset, mute, solo, length, resolution), MusicTrackMoveEvents / Clear / Cut / CopyInsert / Merge, MusicEventIterator…, MusicSequenceFileLoad / LoadData / Create / CreateData, MusicSequenceGetSecondsForBeats / GetBeatsForSeconds, bar-beat time, MusicSequenceReverse, MusicSequenceSetUserCallback, MusicSequenceGetInfoDictionary) |
✅ | ≤17 | adapted: isim's own sequence (MusicSequence.swift); Standard MIDI Files format 0 and 1 read and written (kMusicSequenceLoadSMF_ChannelsToTracks too); seconds and beats through the tempo track (120 BPM before its first tempo); tested (HelloAudio -midi: test_midi_playback.py; MIDIPlaybackTest: test_midi_playback_objc.py) |
Music Player (NewMusicPlayer, MusicPlayerSetSequence, Preroll, Start, Stop, IsPlaying, SetTime / GetTime, GetHostTimeForBeats / GetBeatsForHostTime, SetPlayRateScalar), track destinations (MusicTrackSetDestNode, MusicTrackSetDestMIDIEndpoint, MusicSequenceSetAUGraph / GetAUGraph, MusicSequenceSetMIDIEndpoint) |
✅ | ≤17 | adapted: a player thread every 2 ms sends each track's due events (offsets, loops, mute and solo) to its destination: an AUGraph node, a CoreMIDI endpoint, or the sequence's default graph (a MIDISynth into RemoteIO); note offs after their durations, all notes off on stop; tested (HelloAudio -midi: test_midi_playback.py; MIDIPlaybackTest: test_midi_playback_objc.py) |
Music Device: the Sampler (kAudioUnitSubType_Sampler) and MIDISynth (kAudioUnitSubType_MIDISynth) units, MusicDeviceMIDIEvent, MusicDeviceSysEx, MusicDeviceMIDIEventList, MusicDeviceStartNote / StopNote, kAUSamplerProperty_LoadInstrument (AUSamplerInstrumentData) / LoadAudioFiles, kMusicDeviceProperty_SoundBankURL, the sampler and music device parameters, CopyNameFromSoundBank, CopyInstrumentInfoFromSoundBank |
✅ | ≤17 | adapted: isim's own sampler (Sampler.swift), not Apple's AUSampler: SoundFont 2 presets (zones, loops, root key, tuning, attenuation, pan, the volume envelope), audio files keyed by the note in their names, .aupreset files' audio file references; without an instrument a sine voice (Apple's sampler has a default General MIDI instrument). DLS and EXS24 instruments are not read (kAudioUnitErr_InvalidFile); SoundFont filters, LFOs and modulators are not applied; tested (HelloAudio -midi: test_midi_playback.py; MIDIPlaybackTest: test_midi_playback_objc.py) |
Audio File Stream Services (AudioFileStreamOpen, ParseBytes, Seek, GetPropertyInfo, GetProperty, SetProperty, Close, the kAudioFileStreamProperty_… properties) |
✅ | ≤17 | adapted: isim's own incremental parser for WAV, AIFF / AIFC, CAF (with its packet table), MP3 (an ID3v2 tag skipped) and ADTS AAC (an AudioSpecificConfig magic cookie); other file types are kAudioFileStreamError_UnsupportedFileType. Tested with WAV in any pieces; MP3, ADTS, AIFF and CAF proposed; tested (HelloAudio -midi: test_midi_playback.py; MIDIPlaybackTest: test_midi_playback_objc.py) |
CAClock (CAClockNew, properties, listeners, Start / Stop / Arm, play rate, tempo, CAClockTranslateTime, seconds, beats, SMPTE and bar-beat conversions) |
🟡 | ≤17 | adapted: an internal clock on host time with a tempo map and a meter track; stub: external sync (MIDI clock, MIDI time code) is not followed, CAClockParseMIDI accepts the messages only; tested (HelloAudio -midi: test_midi_playback.py; MIDIPlaybackTest: test_midi_playback_objc.py) |
Apple's other AudioToolbox C declarations (issue #856): the Audio Unit property, parameter, scope, subtype and error constants (3D and spatial mixers, reverb, distortion, dynamics, delay, matrix mixer, sampler, voice I/O, audio mix, MIDI), AudioUnitParameterUnit, AudioUnitParameterOptions, AudioUnitParameterInfo, AudioUnitParameterEvent, AudioUnitEvent, the scheduled-slice and file-region structures, AURenderEvent and its event types, AUReverbRoomType, AUSpatializationAlgorithm and the other mixer enums and flags, HostCallbackInfo, AudioComponentFlags and AudioComponentValidationResult, the Audio Codec, Audio Format, Audio File, Extended Audio File, Audio Queue and Audio Session property IDs and constants, the CAF file structures (CAFFileHeader, CAFChunkHeader, markers, regions, strings, peaks, packet tables), AudioFileMarker / AudioFileRegion and their lists, the callback typedefs of Audio Unit and Audio File Services, AUParameterEventType (now Apple's enum, was a UInt32 typealias) |
🟡 | ≤17 | declarations only, from Apple's names, values and C layouts (usr/include/_AudioToolboxTypes/AudioToolboxDecls.h, seen by Swift through the AudioToolbox module and by C / Objective-C through <AudioToolbox/AudioToolbox.h>): the values isim's units already handle work as before; the rest are accepted names whose properties isim's units do not implement yet (kAudioUnitErr_InvalidProperty). Missing: kAudioUnitType_HeadTrackingBinauralRenderer and kReverb2Param_LegacyMode (newer than the reference headers), kAudioComponentInstanceInvalidationNotification and kAudioComponentRegistrationsChangedNotification carry their own names (isim posts neither). Tested (tests/audiotoolbox-c: values and layouts from plain C; HelloAudio -engine: the enums, option sets and layouts from Swift) |
AudioToolbox's other C functions (issue #856): Audio Unit utilities (AUListenerCreate / CreateWithDispatchQueue, AUEventListenerCreate / CreateWithDispatchQueue, AUListenerAddParameter / RemoveParameter, AUEventListenerAddEventType / RemoveEventType, AUParameterSet, AUParameterListenerNotify, AUEventListenerNotify, AUParameterValueToLinear / FromLinear, AUParameterFormatValue), AudioUnitScheduleParameters, AudioUnitProcessMultiple, AudioComponentRegister, AudioComponentInstanceCanDo, AudioComponentValidate / ValidateWithResults, AudioComponentCopyConfigurationInfo, AudioUnitExtensionSetComponentList / CopyComponentList, the AudioCodec functions, AudioConverterNewSpecific / NewWithOptions / Prepare, AudioConverterFillComplexBufferRealtimeSafe / WithPacketDependencies, Audio File user data (AudioFileCountUserData, GetUserData, GetUserDataSize / Size64, GetUserDataAtOffset, SetUserData, RemoveUserData), AudioFileGetGlobalInfo / Size, AudioFileOpenWithCallbacks, AudioFileInitializeWithCallbacks, AudioFileWritePacketsWithDependencies, ExtAudioFileWrapAudioFileID, AudioFormatGetProperty / Info, AudioServicesGetProperty / Info / SetProperty, AudioQueueCreateTimeline / DisposeTimeline, AudioQueueDeviceGetCurrentTime / GetNearestStartTime / TranslateTime, AudioQueueEnqueueBufferWithParameters, AudioQueueSetOfflineRenderFormat, AudioQueueOfflineRender, the AUGraph interaction functions, CAShow / CAShowFile, and Apple's inline helpers (GetAudioUnitParameterDisplayType, SetAudioUnitParameterDisplayType, NumBytesToNumAudioFileMarkers, NumAudioFileMarkersToNumBytes, NextAudioFileRegion) |
🟡 | ≤17 | adapted (AudioFunctions.swift, C entry points declared in AudioCodec.h, AudioFormat.h, AudioUnitUtilities.h, CAShow.h and the existing headers): listeners get one notification per change on their queue (the main queue for the run-loop variants), and AudioUnitSetParameter does not notify them (as on iOS; AUParameterSet does); a component registered with AudioComponentRegister is called through its AudioComponentPlugInInterface for every Audio Unit function; codecs: AAC and MP3 decoders and an AAC encoder (passthrough: the host's libavcodec); user data is the file's other CAF / WAVE / AIFF chunks; files through callbacks are read whole when they open and written back when they close (linear PCM containers when written); global info and Audio Format answer for the formats and file types isim reads and writes; AudioUnitScheduleParameters applies a ramp at its end value; AudioUnitProcessMultiple takes one input and one output list on isim's units; Audio Queue parameter values in EnqueueBufferWithParameters apply when the buffer is enqueued and the device clock is 48 kHz host time; AUParameterValueToLinear / FromLinear keep the value when the unit gives no ParameterInfo; AudioUnitExtensionSetComponentList keeps the list in memory. Missing: AudioComponentCopyIcon (returns a UIImage, and isim's AudioToolbox sits below UIKit). Tested (HelloAudio -engine: test_audio_engine.py, Audio Format, file types, user data, callbacks, a listener, the AAC codec round trip, offline Audio Queue rendering with trimmed frames, AUGraph interactions, CAShow; tests/audiotoolbox-c: a registered plug-in, AudioComponentInstanceCanDo, AudioUnitScheduleParameters, Audio Format, the inline helpers, interactions, system sound properties, event and parameter listeners from C and Objective-C) |
Audio Unit version 3 (issue #856): AUAudioUnit (initializers, instantiate, registerSubclass, busses, render resources, renderBlock, internalRenderBlock, scheduled parameter and MIDI events, render observers, parameter tree, fullState, factory and user presets, latency, tail time, bypass, MIDI output blocks, host blocks, view configurations, message channels, the input / output unit members), AUAudioUnitV2Bridge, AUAudioUnitBus, AUAudioUnitBusArray, AUAudioUnitPreset, AUAudioUnitViewConfiguration, AUAudioUnitFactory, AUMessageChannel, AUHeadTrackingBinauralRenderer, AUParameterNode / AUParameter / AUParameterGroup / AUParameterTree (factory methods, templates, observers, implementor callbacks, secure coding), the render, MIDI, host, input and parameter block types, AUAudioUnitBusType, AUHostTransportStateFlags; kAudioUnitProperty_ParameterInfo of isim's units; AVAudioUnit.auAudioUnit |
🟡 | ≤17 | adapted (AUAudioUnit.swift; Objective-C: AUAudioUnit.h): an instance of one of isim's components is an AUAudioUnitV2Bridge over its version 2 unit (busses from its elements, parameter tree from its parameter list and Apple's names, units, ranges and defaults, rendering through AudioUnitRender); a subclass registered with registerSubclass is a component, made by instantiate and, for version 2 hosts (AudioComponentInstanceNew, AUGraph), a version 2 unit that renders through its render block; scheduled events reach internalRenderBlock as Apple's AURenderEvent list (the bridge applies parameters at the start of a slice); parameter observers are called on the setting thread; user presets are property lists in the app's Library/Audio/Presets; no audio unit has a user interface (requestViewController answers nil), MIDI-CI profiles or head tracking. AVFoundation's (AUAudioUnitFormats.swift, because isim's AudioToolbox sits below AVFoundation and UIKit): AUAudioUnitBus format, init(format:), setFormat(_:), AUAudioUnit.shouldChange(to:for:) and requestViewController, seen by Swift with AVFoundation imported. Tested (HelloAudio -engine: test_audio_engine.py, a bridge over AUDelay, a registered Swift subclass rendered as version 3 and version 2, state, presets, archived parameters, templates, AVAudioUnit.auAudioUnit; tests/audiotoolbox-c: the bridge and an Objective-C subclass as a version 2 unit) |
| Types not yet in isim (iOS 17 and earlier) | ❌ | ≤17 | not implemented, found by the 2026-10 sweep: none left of the sweep's types; the MIDI-CI profile members of AUAudioUnit (profileState(forCable:channel:), enable / disableProfile, profileChangedBlock) wait for CoreMIDI's MIDICIProfile and MIDICIProfileState classes, which isim lacks |
| Types not yet in isim (iOS 27) | ❌ | 27.0 | not implemented, found by the 2026-10 sweep: AUHeadTrackingBinauralRenderer (1 type; with its members under "Not yet in isim") |
12 symbols Apple documents for iOS that isim does not have (exact; Apple snapshot 2026-10-14). Each links to Apple's documentation.
List
func disableProfile(MIDICIProfile, cable: UInt8, onChannel: MIDIChannelNumber) throwsfunc enable(MIDICIProfile, cable: UInt8, onChannel: MIDIChannelNumber) throwsvar profileChangedBlock: AUMIDICIProfileChangedBlock?func profileState(forCable: UInt8, channel: MIDIChannelNumber) -> MIDICIProfileStatefunc AudioComponentCopyIcon(AudioComponent) -> UIImage?case reverbRoomType_OutdoorGeneralcase autocase offcase onvar kAudioUnitType_HeadTrackingBinauralRenderer: UInt32var kReverb2Param_LegacyMode: AudioUnitParameterIDstatic var smf_PreserveTracks: MusicSequenceLoadFlags