Skip to content

Instantly share code, notes, and snippets.

@WFT
WFT / metadata.swift
Last active November 6, 2024 20:17
Modify CAF audio file metadata with Core Audio / AudioToolbox
import AudioToolbox
import Foundation
func check(_ status: OSStatus, line: Int = #line) {
if status != noErr {
fatalError("Error on line \(line): OSStatus \(status) - https://osstatus.com/search/results?search=\(status)")
}
}