Skip to content

Commit

Permalink
fix: import errors, and target errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AppPear committed Oct 31, 2024
1 parent a425de1 commit 980c3c6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Sources/Mixer/AudioMixerByMultiTrack.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import AVFoundation
import Foundation
import CoreAudio

final class AudioMixerByMultiTrack: AudioMixer {
private static let defaultSampleTime: AVAudioFramePosition = 0
Expand Down
1 change: 1 addition & 0 deletions Sources/Mixer/AudioMonitor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import AudioUnit
import AVFoundation
import CoreMedia
import Foundation
import CoreAudio

final class AudioMonitor {
var inputFormat: AVAudioFormat? {
Expand Down
1 change: 1 addition & 0 deletions Sources/Mixer/AudioRingBuffer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Accelerate
import AVFoundation
import CoreMedia
import Foundation
import CoreAudio

final class AudioRingBuffer {
private static let bufferCounts: UInt32 = 16
Expand Down
2 changes: 1 addition & 1 deletion Sources/RTMP/RTMPStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import UIKit
typealias View = UIView
#endif

#if canImport(AppKit)
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
import AppKit
typealias View = NSView
#endif
Expand Down
2 changes: 1 addition & 1 deletion Sources/Screen/Shape.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class RoundedSquareShape: Shape {
return nil
}
let path = CGPath(roundedRect: rect, cornerWidth: cornerRadius, cornerHeight: cornerRadius, transform: nil)
#if canImport(AppKit)
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
context.setFillColor(NSColor.white.cgColor)
#endif
#if canImport(UIKit)
Expand Down

0 comments on commit 980c3c6

Please sign in to comment.