Skip to content

Commit

Permalink
macOS 14 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmurfin committed Apr 6, 2024
1 parent c31f180 commit 010f767
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion Sources/VideoIO/Camera.swift
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,16 @@ public class Camera {

internal var photoCaptureDelegateHandlers: [AnyObject] = []

private var _audioQueueCaptureSession: AnyObject?

@available(macOS, unavailable)
internal var audioQueueCaptureSession: AudioQueueCaptureSession?
internal var audioQueueCaptureSession: AudioQueueCaptureSession? {
get {
_audioQueueCaptureSession as? AudioQueueCaptureSession
}
set {
_audioQueueCaptureSession = newValue
}
}
}

2 changes: 1 addition & 1 deletion Sources/VideoIO/PlayerVideoOutput.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation
import AVFoundation

@available(macOS, unavailable)
@available(macOS 14.0, *)@available(macOS, unavailable)
public class PlayerVideoOutput: NSObject {

public struct Configuration {
Expand Down

0 comments on commit 010f767

Please sign in to comment.