mirror of
https://github.com/MonitorControl/MonitorControl.git
synced 2026-05-15 14:15:55 -06:00
Fix SimplyCoreAudio incompatibility (#807)
This commit is contained in:
parent
6fdbdc0247
commit
9792facd56
5 changed files with 6 additions and 6 deletions
|
|
@ -939,8 +939,8 @@
|
|||
isa = XCRemoteSwiftPackageReference;
|
||||
repositoryURL = "https://github.com/rnine/SimplyCoreAudio";
|
||||
requirement = {
|
||||
kind = upToNextMajorVersion;
|
||||
minimumVersion = 4.0.1;
|
||||
kind = revision;
|
||||
revision = 75970285e2470f12a569cdff68ef5a75498a4646;
|
||||
};
|
||||
};
|
||||
6CD35F5426500008001F1344 /* XCRemoteSwiftPackageReference "MediaKeyTap" */ = {
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<key>CFBundleShortVersionString</key>
|
||||
<string>$(MARKETING_VERSION)</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>6965</string>
|
||||
<string>6968</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.utilities</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
|
|
|
|||
|
|
@ -284,7 +284,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||
@objc func audioDeviceChanged() {
|
||||
if let defaultDevice = self.coreAudio.defaultOutputDevice {
|
||||
os_log("Default output device changed to “%{public}@”.", type: .info, defaultDevice.name)
|
||||
os_log("Can device set its own volume? %{public}@", type: .info, defaultDevice.canSetVirtualMasterVolume(scope: .output).description)
|
||||
os_log("Can device set its own volume? %{public}@", type: .info, defaultDevice.canSetVirtualMainVolume(scope: .output).description)
|
||||
}
|
||||
self.updateMediaKeyTap()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -173,7 +173,7 @@ class MediaKeyTapManager: MediaKeyTapDelegate {
|
|||
if DisplayManager.shared.updateAudioControlTargetDisplays(deviceName: defaultAudioDevice.name) == 0 {
|
||||
keys.removeAll { keysToDelete.contains($0) }
|
||||
}
|
||||
} else if defaultAudioDevice.canSetVirtualMasterVolume(scope: .output) == true {
|
||||
} else if defaultAudioDevice.canSetVirtualMainVolume(scope: .output) == true {
|
||||
keys.removeAll { keysToDelete.contains($0) }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<key>CFBundleShortVersionString</key>
|
||||
<string>$(MARKETING_VERSION)</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>6965</string>
|
||||
<string>6968</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.utilities</string>
|
||||
<key>LSBackgroundOnly</key>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue