Skip to content

Commit a7027d6

Browse files
committed
move all code to one framework
1 parent 7fc06a7 commit a7027d6

153 files changed

Lines changed: 71 additions & 402 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

common/Sources/common/Extensions.swift renamed to RootEncoder/Sources/RootEncoder/common/Extensions.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,7 @@ public extension String {
5555
return digestData.base64EncodedString()
5656
}
5757
}
58+
59+
public func intToBytes<T>(from value: T) -> [UInt8] where T: FixedWidthInteger {
60+
withUnsafeBytes(of: value.littleEndian, Array.init)
61+
}
File renamed without changes.
File renamed without changes.

common/Sources/common/SynchronizedQueue.swift renamed to RootEncoder/Sources/RootEncoder/common/SynchronizedQueue.swift

File renamed without changes.
File renamed without changes.

encoder/Sources/encoder/audio/AudioEncoder.swift renamed to RootEncoder/Sources/RootEncoder/encoder/audio/AudioEncoder.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import Foundation
99
import AVFoundation
10-
import common
1110

1211
public class AudioEncoder {
1312

@@ -18,7 +17,7 @@ public class AudioEncoder {
1817
private var initTs: Int64 = 0
1918
private let thread = DispatchQueue(label: "AudioEncoder")
2019
private let syncQueue = SynchronizedQueue<AVAudioPCMBuffer>(label: "AudioEncodeQueue", size: 60)
21-
public var codec = common.AudioCodec.AAC
20+
public var codec = AudioCodec.AAC
2221

2322
public init(callback: GetAacData) {
2423
self.callback = callback

0 commit comments

Comments
 (0)