فهرست منبع

Merge branch 'master' of https://git.yishihui.com/iOS/BFCommonKit

* 'master' of https://git.yishihui.com/iOS/BFCommonKit:
  修改使用说明
harry 3 سال پیش
والد
کامیت
1a0121052c
1فایلهای تغییر یافته به همراه9 افزوده شده و 6 حذف شده
  1. 9 6
      BFCommonKit/Classes/BFUtility/PQCreateEmptyWAV.swift

+ 9 - 6
BFCommonKit/Classes/BFUtility/PQCreateEmptyWAV.swift

@@ -7,16 +7,19 @@
 //  功能: 生成指定长度的空 WAV 文件
 /*
     e.g.
-    let tool = LYEmptyWAV(sampleRate: 44100,
+    let tool = PQCreateEmptyWAV(sampleRate: 44100,
                                 channel: 1,
                                 duration: 20,
                                 bit: 16);
 
-          var documentPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first! as String
-          documentPath.append("/test.wav")
-          tool.createEmptyWAVFile(url: URL(fileURLWithPath: documentPath))
-
-     600 s  622028807.468433  622028844.650877
+    //输出文件目录
+    let outputPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first! as String
+     outputPath.append("/test.wav")
+ 
+    //同步创建方法
+    tool.createEmptyWAVFile(url: URL(fileURLWithPath: outputPath))
+    
+    
  */
 
 import UIKit