axiom-avfoundation-ref

Consolidate AVFoundation audio workflows for iOS and macOS apps.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/pradeepmouli/swift-template --skill axiom-avfoundation-ref-pradeepmouli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axiom-avfoundation-ref
Source: https://github.com/pradeepmouli/swift-template/tree/main/.agents/skills/axiom-avfoundation-ref
Command: npx skills add https://github.com/pradeepmouli/swift-template --skill axiom-avfoundation-ref-pradeepmouli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a comprehensive reference for AVFoundation audio workflows, including AVAudioSession management, AVAudioEngine pipelines, bit-perfect DAC routing, and iOS 26+ spatial audio features, to accelerate development and correct usage.

Core Features & Use Cases

  • AVFoundation fundamentals: audio session setup, engine wiring, and playback/record pipelines across iOS and macOS.
  • Advanced capabilities: spatial audio capture, APAC/ASAF formats, and Cinematic framework integration for scene-aware mixing.
  • Use Case: Build an app that records spatial audio, encodes APAC delivery, and tunes the mix with Cinematic for immersive playback.

Quick Start

Initialize the AVAudioSession and build a minimal AVAudioEngine pipeline to verify audio routing and playback.

Frequently Asked Questions about axiom-avfoundation-ref

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up an AVAudioEngine pipeline for recording and playback on iOS?

To set up an AVAudioEngine pipeline, initialize the AVAudioSession with the correct category and mode, then wire input and output nodes to build record and playback pipelines across iOS and macOS.

What is spatial audio capture and how does it work with AVFoundation?

Spatial audio capture uses AVFoundation APIs on iOS 26+ to record immersive audio. It integrates with AVAudioEngine pipelines to capture spatial data for scene-aware mixing and immersive playback.

Can I route bit-perfect audio output to an external DAC using AVAudioSession?

Yes, AVAudioSession supports bit-perfect DAC routing by configuring the correct audio session category and mode, ensuring uncompressed audio data passes directly to the output hardware without internal processing.

What is APAC delivery and when do I need it for spatial audio formats?

APAC delivery is an audio format supported by AVFoundation for encoding spatial audio streams. You need APAC when building apps that capture spatial audio and require efficient delivery for immersive playback.

Does AVFoundation integrate with the Cinematic framework for scene-aware audio mixing?

Yes, AVFoundation integrates with the Cinematic framework to enable scene-aware mixing. This allows developers to tune audio mixes dynamically based on scene data for immersive playback on iOS 26+.

Why is my AVAudioSession category configuration not working for playback and record?

AVAudioSession configuration fails when the category and mode do not match your app's audio intent. Verify the category supports both playback and record, and check for platform-specific limitations on iOS and macOS.