Skip to content

Commit 3af8741

Browse files
authored
Support macos 12.7 (#1343)
* support macos 12.7 * Disable system audio toggle when not available * unify system audio toggle * unify camera/mic/system audio selects * fix cursor
1 parent 10eda43 commit 3af8741

File tree

15 files changed

+236
-296
lines changed

15 files changed

+236
-296
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ tracing = "0.1.41"
4242
futures = "0.3.31"
4343

4444
cidre = { git = "https://github.com/CapSoftware/cidre", rev = "bf84b67079a8", features = [
45-
"macos_13_0",
45+
"macos_12_7",
4646
"cv",
4747
"cf",
4848
"core_audio",

apps/desktop/src-tauri/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,6 +1873,7 @@ pub async fn run(recording_logging_handle: LoggingHandle, logs_dir: PathBuf) {
18731873
show_window,
18741874
write_clipboard_string,
18751875
platform::perform_haptic_feedback,
1876+
platform::is_system_audio_capture_supported,
18761877
list_fails,
18771878
set_fail,
18781879
update_auth_plan,

apps/desktop/src-tauri/src/platform/mod.rs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,23 @@ pub fn perform_haptic_feedback(
5252
#[cfg(not(target_os = "macos"))]
5353
Err("Haptics are only supported on macOS.".into())
5454
}
55+
56+
/// Check if system audio capture is supported on the current platform and OS version.
57+
/// On macOS, system audio capture requires macOS 13.0 or later.
58+
/// On Windows/Linux, this may have different requirements.
59+
#[tauri::command]
60+
#[specta::specta]
61+
#[instrument]
62+
pub fn is_system_audio_capture_supported() -> bool {
63+
#[cfg(target_os = "macos")]
64+
{
65+
scap_screencapturekit::is_system_audio_supported()
66+
}
67+
68+
#[cfg(not(target_os = "macos"))]
69+
{
70+
// On Windows/Linux, we assume system audio capture is available
71+
// This can be refined later based on platform-specific requirements
72+
true
73+
}
74+
}

0 commit comments

Comments
 (0)