avfoundation-ref

Reference AVFoundation audio sessions, pipelines, and iOS 26+ spatial audio APIs.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/derKlinke/codex-config --skill avfoundation-ref-derklinke
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: avfoundation-ref
Source: https://github.com/derKlinke/codex-config/tree/main/skills/ios-avfoundation-ref
Command: npx skills add https://github.com/derKlinke/codex-config --skill avfoundation-ref-derklinke

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive reference for AVFoundation audio APIs, including AVAudioSession handling, AVAudioEngine pipelines, and advanced iOS 26+ features, empowering developers to implement robust audio experiences without wading through scattered docs.

Core Features & Use Cases

  • AVAudioSession categories, modes, and options with practical usage notes
  • AVAudioEngine pipelines, taps, and format conversions for real-time audio apps
  • iOS 26+ capabilities such as AVInputPickerInteraction and spatial audio (FOA/APAC) integration
  • Bit-perfect DAC routing and USB output guidance for high-fidelity playback
  • Real-world scenarios: building recording, playback, and spatial audio apps with best practices

Quick Start

Open the avfoundation-ref skill to browse the reference sections and search for topics like "AVAudioSession" or "AVAudioEngine" to begin.

Frequently Asked Questions about avfoundation-ref

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

FAQPage Schema
How do I configure AVAudioSession categories and modes for recording and playback?

AVAudioSession categories and modes define audio behavior for recording and playback. This reference provides practical usage notes for configuring sessions, handling interruptions, and managing route changes to build robust iOS audio apps.

How do I build an AVAudioEngine pipeline for real-time audio processing?

AVAudioEngine pipelines connect nodes for real-time audio processing. This reference demonstrates how to configure engine workflows, install taps, and perform format conversions for live audio applications.

Does AVFoundation support spatial audio and AVInputPickerInteraction on iOS 26?

AVFoundation supports spatial audio and AVInputPickerInteraction on iOS 26. This reference covers FOA/APAC integration and input picker features for implementing advanced spatial audio experiences.

What is the best way to achieve bit-perfect DAC output via USB on iOS?

Bit-perfect DAC output requires specific routing configurations for USB audio devices. This reference provides guidance on bypassing iOS audio processing to achieve high-fidelity playback through external DACs.

How do I handle audio interruptions and routing changes in AVAudioSession?

Handling audio interruptions and routing changes in AVAudioSession ensures continuous playback. This reference explains how to manage session deactivations, route switches, and resource recovery during phone calls or hardware changes.