소스 검색

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