Files
Lyrebird/Sources/Lyrebird/AUv3/LyrebirdAudioUnitError.swift
T
2026-06-01 18:27:40 -07:00

25 lines
913 B
Swift

// LyrebirdAudioUnitError.swift
// Lyrebird
//
// Copyright (c) 2026 Joshua Parmenter / realizedsound
// SPDX-License-Identifier: MIT
import Foundation
/// Errors thrown by `LyrebirdAudioUnit` during init or `allocateRenderResources`.
public enum LyrebirdAudioUnitError: Error {
/// `AVAudioFormat(standardFormatWithSampleRate:channels:)` returned nil — usually
/// caused by an unsupported channel count or non-finite sample rate.
case invalidStreamFormat
/// `allocateRenderResources` was called before the output bus's stream format
/// was committed (sample rate or channel count missing).
case outputBusNotConfigured
/// `makeSynthesizer()` returned a synthesizer whose `@LiveParam` discovery
/// produced no parameters AND no audio output generators. The AU has nothing
/// to render or expose — almost certainly a programming error.
case emptySynthesizer
}