| 1234567891011121314151617181920212223 |
- import Foundation
- import SwiftData
- @Model
- final class AudioChunk {
- var id: UUID
- var chunkIndex: Int
- var localFilePath: String
- var durationMs: Int64
- var offsetInSessionMs: Int64
- var createdAt: Date
-
- var session: CelestiaSession?
-
- init(chunkIndex: Int, localFilePath: String, durationMs: Int64, offsetInSessionMs: Int64) {
- self.id = UUID()
- self.chunkIndex = chunkIndex
- self.localFilePath = localFilePath
- self.durationMs = durationMs
- self.offsetInSessionMs = offsetInSessionMs
- self.createdAt = Date()
- }
- }
|