Skip to content

Commit 9792fac

Browse files
authored
Fix SimplyCoreAudio incompatibility (MonitorControl#807)
1 parent 6fdbdc0 commit 9792fac

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

MonitorControl.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -939,8 +939,8 @@
939939
isa = XCRemoteSwiftPackageReference;
940940
repositoryURL = "https://github.com/rnine/SimplyCoreAudio";
941941
requirement = {
942-
kind = upToNextMajorVersion;
943-
minimumVersion = 4.0.1;
942+
kind = revision;
943+
revision = 75970285e2470f12a569cdff68ef5a75498a4646;
944944
};
945945
};
946946
6CD35F5426500008001F1344 /* XCRemoteSwiftPackageReference "MediaKeyTap" */ = {

MonitorControl/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleShortVersionString</key>
2020
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleVersion</key>
22-
<string>6965</string>
22+
<string>6968</string>
2323
<key>LSApplicationCategoryType</key>
2424
<string>public.app-category.utilities</string>
2525
<key>LSMinimumSystemVersion</key>

MonitorControl/Support/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
284284
@objc func audioDeviceChanged() {
285285
if let defaultDevice = self.coreAudio.defaultOutputDevice {
286286
os_log("Default output device changed to “%{public}@”.", type: .info, defaultDevice.name)
287-
os_log("Can device set its own volume? %{public}@", type: .info, defaultDevice.canSetVirtualMasterVolume(scope: .output).description)
287+
os_log("Can device set its own volume? %{public}@", type: .info, defaultDevice.canSetVirtualMainVolume(scope: .output).description)
288288
}
289289
self.updateMediaKeyTap()
290290
}

MonitorControl/Support/MediaKeyTapManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class MediaKeyTapManager: MediaKeyTapDelegate {
173173
if DisplayManager.shared.updateAudioControlTargetDisplays(deviceName: defaultAudioDevice.name) == 0 {
174174
keys.removeAll { keysToDelete.contains($0) }
175175
}
176-
} else if defaultAudioDevice.canSetVirtualMasterVolume(scope: .output) == true {
176+
} else if defaultAudioDevice.canSetVirtualMainVolume(scope: .output) == true {
177177
keys.removeAll { keysToDelete.contains($0) }
178178
}
179179
}

MonitorControlHelper/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleShortVersionString</key>
2020
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleVersion</key>
22-
<string>6965</string>
22+
<string>6968</string>
2323
<key>LSApplicationCategoryType</key>
2424
<string>public.app-category.utilities</string>
2525
<key>LSBackgroundOnly</key>

0 commit comments

Comments
 (0)