Explorar o código

第一时间同步音频路径

harry %!s(int64=3) %!d(string=hai) anos
pai
achega
626414626c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      BFRecordScreenKit/Classes/BFVoiceRecordManager.swift

+ 1 - 0
BFRecordScreenKit/Classes/BFVoiceRecordManager.swift

@@ -63,6 +63,7 @@ class BFVoiceRecordManager: NSObject {
         recorderFilePath.append("recorder_\(Date().timeIntervalSince1970).pcm")
         beginRecordTime = Date()
         BFLog(1, message: "开始录音 \(recorderFilePath)  开始时间\(beginRecordTime)")
+        voiceModel?.wavFilePath = recorderFilePath
         audioRecorder?.startRecord(recorderFilePath)
     }