25 lines
913 B
Swift
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
|
|
}
|