AudioTee Swift CLI repo

This commit is contained in:
Nick Payne
2025-06-11 15:33:40 +01:00
commit 4a8bc657e3
26 changed files with 1559 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
import ArgumentParser
import CoreAudio
public enum TapMuteBehavior: String, CaseIterable, ExpressibleByArgument {
case unmuted = "unmuted"
case muted = "muted"
public var description: String {
switch self {
case .unmuted:
return "Don't mute processes (default)"
case .muted:
return "Mute processes being tapped"
}
}
public var coreAudioValue: CATapMuteBehavior {
switch self {
case .unmuted:
return .unmuted
case .muted:
return .muted
}
}
}