678557caf7
Adds --capture-mic/--mic-output for a second, independently-captured audio track (mic vs system, written to separate outputs to avoid interleaving corruption). Embeds Info.plist at link time so the binary carries a stable CFBundleIdentifier and the usage-description keys TCC requires, and adds scripts/build-signed.sh + scripts/create-signing-identity.sh so a rebuilt binary keeps the same signing identity instead of losing granted permissions on every rebuild. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
24 lines
577 B
Swift
24 lines
577 B
Swift
import CoreAudio
|
|
import Foundation
|
|
|
|
// MARK: - Core AudioTee Errors
|
|
|
|
public enum AudioTeeError: Error {
|
|
case setupFailed
|
|
case tapCreationFailed(OSStatus)
|
|
case aggregateDeviceCreationFailed(OSStatus)
|
|
case tapAssignmentFailed(OSStatus)
|
|
case pidTranslationFailed([Int32])
|
|
case deviceFormatUnavailable(AudioObjectID)
|
|
case ioProcCreationFailed(OSStatus)
|
|
case deviceStartFailed(OSStatus)
|
|
case defaultInputDeviceUnavailable(OSStatus)
|
|
}
|
|
|
|
// MARK: - Audio Format Conversion Errors
|
|
|
|
public enum AudioConverterError: Error {
|
|
case invalidFormat
|
|
case creationFailed
|
|
}
|