Skip to content

Instantly share code, notes, and snippets.

View iccir's full-sized avatar

Ricci Adams iccir

View GitHub Profile
@iccir
iccir / core_audio_tap_example.m
Last active September 1, 2024 20:11 — forked from directmusic/core_audio_tap_example.m
This is a modification of Joseph Lyncheski's original. It shows how to set up a CoreAudio tap to apply an effect (in this case, a low-pass filter) to all audio. **Note: This is not production-quality code and makes several assumptions. This will likely explode on certain configurations.**
// This is a quick example of how to use the CoreAudio API and the new Tapping
// API to create a tap on the default audio device. You need macOS 14.2 or
// later.
// Build command:
// clang -framework Foundation -framework CoreAudio main.m -o tapping
// License: You're welcome to do whatever you want with this code. If you do
// something cool please tell me though. I would love to hear about it!