|
@@ -476,10 +476,8 @@ class BFRecordScreenCameraManager: BFRecordScreenBaseManager {
|
|
|
useVoiceStickers = recordItem?.voiceStickers ?? [PQVoiceModel]()
|
|
|
}
|
|
|
|
|
|
- let spitTime = (recordItem?.voiceChangeStickers.count ?? 0) > 0 ? 0.0 : 0.333
|
|
|
-
|
|
|
if let mod = useVoiceStickers.first(where: { m in
|
|
|
- CMTimeCompare(m.startCMTime, currentAssetProgress + CMTime(seconds: spitTime, preferredTimescale: 1000)) <= 0 && CMTimeCompare(m.endCMTime, (currentAssetProgress + CMTime(seconds: spitTime, preferredTimescale: 1000))) > 0
|
|
|
+ CMTimeCompare(m.startCMTime, currentAssetProgress) <= 0 && CMTimeCompare(m.endCMTime, currentAssetProgress) > 0
|
|
|
}) {
|
|
|
BFLog(message: "找到音频开始时间:\(mod.startCMTime.seconds)结束 \(mod.endCMTime.seconds) currentAssetProgress is \(currentAssetProgress.seconds)")
|
|
|
|