audio-realtime

Enforce thread safety and zero-allocation policies in real-time audio callbacks.

Updated Dec 25, 2025
One-click install
npx skills add https://github.com/mourato/prisma --skill audio-realtime
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: audio-realtime
Source: https://github.com/mourato/prisma/tree/main/.agents/skills/audio-realtime
Command: npx skills add https://github.com/mourato/prisma --skill audio-realtime

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses critical policies and architectural patterns for real-time audio processing, ensuring low latency and preventing common issues like deadlocks and memory allocation failures in audio callbacks.

Core Features & Use Cases

  • Thread Safety: Enforces strict rules for multi-threaded audio access, preventing deadlocks.
  • Zero Allocation: Guides developers to avoid memory allocations within time-sensitive audio callbacks.
  • Performance Optimization: Provides patterns for efficient audio buffer handling and synchronization.
  • Use Case: Debugging audio underruns or optimizing an audio engine for maximum performance on Apple Silicon.

Quick Start

Review the critical constraints for real-time audio processing.

Frequently Asked Questions about audio-realtime

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

FAQPage Schema
How do I prevent memory allocations in real-time audio callbacks using Swift?

To prevent memory allocations in real-time audio callbacks using Swift, you must enforce a zero-allocation policy and implement efficient pre-allocated buffer management within time-sensitive execution paths.

Why does my AVAudioEngine implementation experience deadlocks and audio underruns?

AVAudioEngine implementations experience deadlocks and audio underruns due to unsafe multi-threaded audio access, requiring strict thread safety rules and optimized synchronization to resolve.

How do I optimize Swift concurrency for low-latency audio processing on Apple Silicon?

Optimizing Swift concurrency for low-latency audio processing on Apple Silicon requires enforcing thread safety, avoiding memory allocations in callbacks, and managing audio buffers efficiently to prevent performance drops.

What is the best way to handle audio buffer synchronization without causing deadlocks?

The best way to handle audio buffer synchronization without causing deadlocks is to enforce strict thread safety rules for multi-threaded audio access and utilize efficient buffer management patterns.

Can I use real-time audio processing policies to debug performance issues in SystemAudioRecorder?

Yes, you can use real-time audio processing policies to debug performance issues in SystemAudioRecorder by applying zero-allocation constraints and thread safety rules to identify bottlenecks and prevent failures.

When do I need zero-allocation policies for real-time audio processing?

You need zero-allocation policies for real-time audio processing whenever working with time-sensitive audio callbacks to prevent memory allocation failures, ensure low latency, and maintain continuous audio engine performance.