Sync source edition with VCC Plus 3.7.0 build 63

This commit is contained in:
Brian Holman committed 2026-11-14 01:43:46 -07:00
1 parent c652a5276d
commit b2ecec4d87
86 files changed
+10519 -472

No files matched your search

@@ -0,0 +1,22 @@
// SPDX-License-Identifier: GPL-3.0-or-later
import AppKit
/// Host feedback has no connection to the emulator's generated PCM or either
/// video/playtest capture path. No microphone or system-output recording is used.
@MainActor enum CoCoCaptureFeedback {
enum Cue: Equatable { case screenshot, recordingStarted }
private static let shutter = sound("screenshot")
private static let recording = sound("recording-start")
private static func sound(_ name: String) -> NSSound? {
guard let url = Bundle.main.url(forResource: name, withExtension: "wav", subdirectory: "CaptureSounds") else { return nil }
return NSSound(contentsOf: url, byReference: false)
}
static func play(_ cue: Cue) {
let sound = cue == .screenshot ? shutter : recording
sound?.stop()
sound?.play()
}
}