Skip to content

Commit 19571a6

Browse files
committed
Revert "Revert: break the build"
This reverts commit 0e3ef53.
1 parent 0fda7d5 commit 19571a6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Sources/LiveKit/Extensions/AVAudioPCMBuffer.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ public extension AVAudioPCMBuffer {
4848
return nil
4949
}
5050

51-
// #if swift(>=6.0)
52-
// // Won't be accessed concurrently, marking as nonisolated(unsafe) to avoid Atomics.
53-
// nonisolated(unsafe) var isDone = false
54-
// #else
51+
#if swift(>=6.0)
52+
// Won't be accessed concurrently, marking as nonisolated(unsafe) to avoid Atomics.
53+
nonisolated(unsafe) var isDone = false
54+
#else
5555
var isDone = false
56-
// #endif
56+
#endif
5757
let inputBlock: AVAudioConverterInputBlock = { _, outStatus in
5858
if isDone {
5959
outStatus.pointee = .noDataNow

Sources/LiveKit/Extensions/Sendable.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ extension LKRTCSessionDescription: @unchecked Swift.Sendable {}
4141
extension LKRTCStatisticsReport: @unchecked Swift.Sendable {}
4242
extension LKRTCVideoCodecInfo: @unchecked Swift.Sendable {}
4343
extension LKRTCVideoFrame: @unchecked Swift.Sendable {}
44-
// extension LKRTCRtpCapabilities: @unchecked Swift.Sendable {}
44+
extension LKRTCRtpCapabilities: @unchecked Swift.Sendable {}
4545

4646
// MARK: Mutable classes - to be validated
4747

4848
extension LKRTCConfiguration: @unchecked Swift.Sendable {}
4949
extension LKRTCVideoCapturer: @unchecked Swift.Sendable {}
50-
// extension LKRTCDefaultAudioProcessingModule: @unchecked Swift.Sendable {}
50+
extension LKRTCDefaultAudioProcessingModule: @unchecked Swift.Sendable {}
5151

5252
// MARK: Collections
5353

0 commit comments

Comments
 (0)