├── .gitignore ├── .travis.yml ├── ASAudioWaveformView.podspec ├── ASAudioWaveformView ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── ASAudioDataReader.swift │ ├── ASAudioWaveformConfig.swift │ ├── ASAudioWaveformDataFactory.swift │ ├── ASAudioWaveformDataFilter.swift │ ├── ASAudioWaveformView.swift │ └── ASThrottler.swift ├── Example ├── ASAudioWaveformView.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── ASAudioWaveformView.xcworkspace │ └── contents.xcworkspacedata ├── ASAudioWaveformView │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── ViewController.swift │ ├── test.mp3 │ └── test1.m4a ├── Podfile ├── Podfile.lock └── Pods │ ├── Headers │ └── Public │ │ └── ASAudioWaveformView │ │ ├── ASAudioWaveformView-umbrella.h │ │ └── ASAudioWaveformView.modulemap │ ├── Local Podspecs │ └── ASAudioWaveformView.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ └── project.pbxproj │ └── Target Support Files │ ├── ASAudioWaveformView │ ├── ASAudioWaveformView-Info.plist │ ├── ASAudioWaveformView-dummy.m │ ├── ASAudioWaveformView-prefix.pch │ ├── ASAudioWaveformView-umbrella.h │ ├── ASAudioWaveformView.debug.xcconfig │ ├── ASAudioWaveformView.modulemap │ └── ASAudioWaveformView.release.xcconfig │ └── Pods-ASAudioWaveformView_Example │ ├── Pods-ASAudioWaveformView_Example-Info.plist │ ├── Pods-ASAudioWaveformView_Example-acknowledgements.markdown │ ├── Pods-ASAudioWaveformView_Example-acknowledgements.plist │ ├── Pods-ASAudioWaveformView_Example-dummy.m │ ├── Pods-ASAudioWaveformView_Example-frameworks.sh │ ├── Pods-ASAudioWaveformView_Example-umbrella.h │ ├── Pods-ASAudioWaveformView_Example.debug.xcconfig │ ├── Pods-ASAudioWaveformView_Example.modulemap │ └── Pods-ASAudioWaveformView_Example.release.xcconfig ├── LICENSE ├── README.md └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/ASAudioWaveformView.xcworkspace -scheme ASAudioWaveformView-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /ASAudioWaveformView.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint ASAudioWaveformView.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'ASAudioWaveformView' 11 | s.version = '1.0.4' 12 | s.summary = 'a simple and easy way to create audio waveform view' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | easy to create audio waveform view and it will adjust to fit the frame automatically!! 22 | DESC 23 | 24 | s.homepage = 'https://github.com/Andrewmika/ASAudioWaveformView' 25 | # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2' 26 | s.license = { :type => 'MIT', :file => 'LICENSE' } 27 | s.author = { 'Andrew Shen' => 'iandrew@126.com' } 28 | s.source = { :git => 'https://github.com/Andrewmika/ASAudioWaveformView.git', :tag => s.version.to_s } 29 | # s.social_media_url = 'https://twitter.com/' 30 | 31 | s.ios.deployment_target = '8.0' 32 | 33 | s.source_files = 'ASAudioWaveformView/Classes/**/*' 34 | s.swift_version = '5.0' 35 | # s.resource_bundles = { 36 | # 'ASAudioWaveformView' => ['ASAudioWaveformView/Assets/*.png'] 37 | # } 38 | 39 | # s.public_header_files = 'Pod/Classes/**/*.h' 40 | s.frameworks = 'CoreMedia' 41 | # s.dependency 'AFNetworking', '~> 2.3' 42 | end 43 | -------------------------------------------------------------------------------- /ASAudioWaveformView/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andrewmika/ASAudioWaveformView/0d00d57791d654367b9406767143ed41ec0d5ebd/ASAudioWaveformView/Assets/.gitkeep -------------------------------------------------------------------------------- /ASAudioWaveformView/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andrewmika/ASAudioWaveformView/0d00d57791d654367b9406767143ed41ec0d5ebd/ASAudioWaveformView/Classes/.gitkeep -------------------------------------------------------------------------------- /ASAudioWaveformView/Classes/ASAudioDataReader.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ASAudioDataReader.swift 3 | // ASAudioWaveformView 4 | // 5 | // Created by Andrew Shen on 2020/9/17. 6 | // 7 | 8 | import Foundation 9 | import AVFoundation 10 | 11 | struct ASAudioDataReader { 12 | 13 | static func loadAudioData(from audioURL: URL, timeRange: CMTimeRange, completion: @escaping (Data?) -> Void) { 14 | let trackKey = "tracks" 15 | let asset = AVAsset(url: audioURL) 16 | asset.loadValuesAsynchronously(forKeys: [trackKey]) { 17 | var error: NSError? 18 | let status = asset.statusOfValue(forKey: trackKey, error: &error) 19 | var waveData: Data? 20 | if status == .loaded { 21 | waveData = loadAudioData(from: asset, timeRange: timeRange) 22 | } 23 | completion(waveData) 24 | } 25 | } 26 | 27 | private static func loadAudioData(from asset: AVAsset, timeRange: CMTimeRange) -> Data? { 28 | do { 29 | let assetReader = try AVAssetReader.init(asset: asset) 30 | assetReader.timeRange = timeRange 31 | guard let track = asset.tracks(withMediaType: .audio).first else { return nil } 32 | let outputSettings: [String : Any] = [ 33 | AVFormatIDKey: kAudioFormatLinearPCM, 34 | AVLinearPCMIsBigEndianKey: false, 35 | AVLinearPCMIsFloatKey: false, 36 | AVLinearPCMBitDepthKey: 16 37 | ] 38 | let trackOutput = AVAssetReaderTrackOutput(track: track, outputSettings: outputSettings) 39 | assetReader.add(trackOutput) 40 | assetReader.startReading() 41 | var data = Data() 42 | while assetReader.status == .reading { 43 | guard let sampleBuffer = trackOutput.copyNextSampleBuffer(), let blockBuffer = CMSampleBufferGetDataBuffer(sampleBuffer) else { continue } 44 | let dataLength = CMBlockBufferGetDataLength(blockBuffer) 45 | let sampleBytes = UnsafeMutablePointer.allocate(capacity: dataLength) 46 | defer { 47 | sampleBytes.deallocate() 48 | } 49 | CMBlockBufferCopyDataBytes(blockBuffer, atOffset: 0, dataLength: dataLength, destination: sampleBytes) 50 | data.append(Data(bytes: sampleBytes, count: dataLength)) 51 | CMSampleBufferInvalidate(sampleBuffer) 52 | 53 | } 54 | if assetReader.status == .completed { 55 | return data 56 | } 57 | return nil 58 | 59 | } catch { 60 | return nil 61 | } 62 | 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /ASAudioWaveformView/Classes/ASAudioWaveformConfig.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ASAudioWaveformConfig.swift 3 | // ASAudioWaveformView 4 | // 5 | // Created by Andrew Shen on 2020/11/16. 6 | // 7 | 8 | import Foundation 9 | import CoreMedia 10 | 11 | public class ASAudioWaveformConfig { 12 | var positionType: ASAudioWaveformView.PositionType = .center 13 | var contentType: ASAudioWaveformView.ContentType = .polyLine 14 | var fillColor: UIColor = .yellow 15 | var audioURL: URL? 16 | var maxSamplesCount: Int = 600 17 | var timeRange: CMTimeRange = CMTimeRangeMake(start: .zero, duration: .positiveInfinity) 18 | 19 | /// config waveform postion, the default is center 20 | @discardableResult 21 | public func positionType(_ type: ASAudioWaveformView.PositionType) -> ASAudioWaveformConfig { 22 | positionType = type 23 | return self 24 | } 25 | 26 | /// config waveform content style, the default is polyline 27 | @discardableResult 28 | public func contentType(_ type: ASAudioWaveformView.ContentType) -> ASAudioWaveformConfig { 29 | contentType = type 30 | return self 31 | } 32 | 33 | /// config waveform fill color, the default is yellow 34 | @discardableResult 35 | public func fillColor(_ color: UIColor) -> ASAudioWaveformConfig { 36 | fillColor = color 37 | return self 38 | } 39 | 40 | /// config waveform audio source 41 | @discardableResult 42 | public func audioURL(_ URL: URL?) -> ASAudioWaveformConfig { 43 | audioURL = URL 44 | return self 45 | } 46 | 47 | /// config max samples count, the default is 1000 48 | @discardableResult 49 | public func maxSamplesCount(_ count: Int) -> ASAudioWaveformConfig { 50 | maxSamplesCount = count 51 | return self 52 | } 53 | 54 | /// Specifies a range of time that may limit the temporal portion of the receiver's asset from which media data will be read.The default value of timeRange is CMTimeRangeMake(kCMTimeZero, kCMTimePositiveInfinity). 55 | @discardableResult 56 | public func timeRange(_ range: CMTimeRange) -> ASAudioWaveformConfig { 57 | timeRange = range 58 | return self 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /ASAudioWaveformView/Classes/ASAudioWaveformDataFactory.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ASAudioWaveformDataFactory.swift 3 | // ASAudioWaveformView 4 | // 5 | // Created by Andrew Shen on 2020/9/17. 6 | // 7 | 8 | import Foundation 9 | import CoreMedia 10 | 11 | typealias WaveSize = (width: Int, height: CGFloat) 12 | 13 | struct ASAudioWaveformDataFactory { 14 | 15 | static func loadAudioWaveformData(from audioURL: URL, formateSize: WaveSize, timeRange: CMTimeRange, completion: @escaping ([Float]?, Data?) -> Void) { 16 | ASAudioDataReader.loadAudioData(from: audioURL, timeRange: timeRange) { (audioData) in 17 | if let data = audioData { 18 | let filteredPoints = ASAudioWaveformDataFilter.filtered(samples: data, for: formateSize) 19 | DispatchQueue.main.async { 20 | completion(filteredPoints, data) 21 | } 22 | } 23 | else { 24 | DispatchQueue.main.async { 25 | completion(nil, nil) 26 | } 27 | } 28 | } 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /ASAudioWaveformView/Classes/ASAudioWaveformDataFilter.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ASAudioWaveformDataFilter.swift 3 | // ASAudioWaveformView 4 | // 5 | // Created by Andrew Shen on 2020/9/17. 6 | // 7 | 8 | import Foundation 9 | 10 | struct ASAudioWaveformDataFilter { 11 | static func filtered(samples data: Data, for size: WaveSize) -> [Float]? { 12 | guard size.width > 1 else { return nil } 13 | var filteredSamples = [Float]() 14 | let samplesCount = data.count / MemoryLayout.size 15 | let binSize = samplesCount / size.width 16 | let bytes = data.copyBytes() 17 | var maxSample: Int16 = 0 18 | for i in stride(from: 0, to: samplesCount - 1, by: binSize) { 19 | let minSize = min(binSize, samplesCount - i) 20 | let maxValue = bytes[i..<(i+minSize)].max() ?? 0 21 | filteredSamples.append(Float(maxValue)) 22 | maxSample = max(maxSample, maxValue) 23 | } 24 | if maxSample != 0 { 25 | let scaleFactor = (size.height / 2) / CGFloat(maxSample) 26 | filteredSamples = filteredSamples.map { $0 * Float(scaleFactor) } 27 | } 28 | else { 29 | return nil; 30 | } 31 | 32 | 33 | return filteredSamples 34 | } 35 | } 36 | 37 | extension Data { 38 | func copyBytes() -> [Int16] { 39 | return withUnsafeBytes { Array($0.bindMemory(to: Int16.self))} 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /ASAudioWaveformView/Classes/ASAudioWaveformView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ASAudioWaveformView.swift 3 | // ASAudioWaveformView 4 | // 5 | // Created by Andrew Shen on 2020/9/15. 6 | // 7 | 8 | import UIKit 9 | 10 | public class ASAudioWaveformView: UIView { 11 | 12 | public enum PositionType { 13 | case top 14 | case center 15 | case bottom 16 | } 17 | 18 | public enum ContentType { 19 | case polyLine 20 | case singleLine 21 | } 22 | 23 | public typealias DrawCompletion = (Bool) -> Void 24 | 25 | public var audioURL: URL? { 26 | return waveformConfig.audioURL 27 | } 28 | 29 | typealias LoadState = (loaded: Bool, loading: Bool) 30 | 31 | var waveformConfig = ASAudioWaveformConfig() 32 | var filteredSamples: [Float]? 33 | var topPoints: [CGFloat]? 34 | var bottomPoints: [CGFloat]? 35 | var throttler = ASThrottler(interval: 0.001) 36 | var completion: DrawCompletion? 37 | var loadState: LoadState = (false, false) 38 | 39 | lazy var shapeLayer: CAShapeLayer = { 40 | let layer = CAShapeLayer() 41 | self.layer.addSublayer(layer) 42 | return layer 43 | }() 44 | 45 | /// class method create waveform by waveform config, see ASAudioWaveformConfig 46 | /// - Parameter config: A configuration object that specifies certain behaviors, See ASAudioWaveformConfig for more infomation 47 | /// - Parameter completion: A block object to be executed when complete. This block takes a single Boolean argument that indicates whether or not the content is empty, it will be true if empty.. This parameter may be NULL. 48 | public static func create(frame: CGRect, _ config: (ASAudioWaveformConfig) -> Void, completion: DrawCompletion? = nil) -> ASAudioWaveformView { 49 | let waveformView = ASAudioWaveformView(frame: frame) 50 | waveformView.createWaveform(config, completion: completion) 51 | return waveformView 52 | } 53 | 54 | 55 | /// create waveform by waveform config 56 | /// - Parameter config: A configuration object that specifies certain behaviors, See ASAudioWaveformConfig for more infomation 57 | /// - Parameter completion: A block object to be executed when complete. This block takes a single Boolean argument that indicates whether or not the content is empty, it will be true if empty. This parameter may be NULL. 58 | public func createWaveform(_ config: (ASAudioWaveformConfig) -> Void, completion: DrawCompletion? = nil) { 59 | self.completion = completion 60 | config(waveformConfig) 61 | guard frame.size.height > 0, let URL = waveformConfig.audioURL else { 62 | if let completion = completion { 63 | completion(true) 64 | } 65 | return 66 | } 67 | 68 | loadWaveformData(from: URL) 69 | } 70 | 71 | 72 | /// Refresh waveform by audio url 73 | public func refreshWaveform(with audioURL: URL?) { 74 | guard let url = audioURL, self.audioURL != url else { 75 | if let completion = completion { 76 | completion(true) 77 | } 78 | return 79 | } 80 | waveformConfig.audioURL = audioURL 81 | loadWaveformData(from: url) 82 | } 83 | 84 | public override func layoutSubviews() { 85 | super.layoutSubviews() 86 | throttler.throttle {[weak self] in 87 | guard let self = `self` else {return} 88 | CATransaction.begin() 89 | CATransaction.setDisableActions(true) 90 | self.shapeLayer.path = self.updateWavePath()?.cgPath 91 | self.shapeLayer.frame = self.bounds 92 | CATransaction.commit() 93 | 94 | if !self.frame.equalTo(.zero), self.loadState == (false, false), let URL = self.waveformConfig.audioURL { 95 | self.loadWaveformData(from: URL) 96 | } 97 | } 98 | } 99 | 100 | } 101 | 102 | private extension ASAudioWaveformView { 103 | 104 | func loadWaveformData(from audioURL: URL) { 105 | loadState.loading = true 106 | ASAudioWaveformDataFactory.loadAudioWaveformData(from: audioURL, formateSize: (waveformConfig.maxSamplesCount, frame.height * 0.5), timeRange: waveformConfig.timeRange) { (samples, assetData) in 107 | self.loadState = (true, false) 108 | self.filteredSamples = samples 109 | self.drawWaveform() 110 | } 111 | } 112 | 113 | func drawWaveform() { 114 | guard let samples = filteredSamples, !samples.isEmpty else { 115 | if let completion = completion { 116 | shapeLayer.path = nil 117 | completion(true) 118 | } 119 | return 120 | } 121 | shapeLayer.frame = bounds 122 | buildWaveformPoints(samples) 123 | shapeLayer.path = updateWavePath()?.cgPath 124 | shapeLayer.fillColor = waveformConfig.fillColor.cgColor 125 | shapeLayer.strokeColor = waveformConfig.fillColor.cgColor 126 | 127 | if let completion = completion { 128 | completion(false) 129 | } 130 | } 131 | 132 | func buildWaveformPoints(_ samples: [Float]) { 133 | var topPointsTemp = [CGFloat]() 134 | var bottomPointsTemp = [CGFloat]() 135 | samples.forEach { (sample) in 136 | switch waveformConfig.positionType { 137 | 138 | case .top: 139 | let minY = bounds.minY 140 | topPointsTemp.append(minY) 141 | bottomPointsTemp.append(minY + CGFloat(sample * 2)) 142 | case .center: 143 | let midY = bounds.midY 144 | topPointsTemp.append(midY - CGFloat(sample)) 145 | bottomPointsTemp.append(midY + CGFloat(sample)) 146 | case .bottom: 147 | let maxY = bounds.maxY 148 | topPointsTemp.append(maxY - CGFloat(sample * 2)) 149 | bottomPointsTemp.append(maxY) 150 | } 151 | } 152 | topPoints = topPointsTemp 153 | bottomPoints = bottomPointsTemp 154 | } 155 | 156 | func updateWavePath() -> UIBezierPath? { 157 | guard let topPoints = topPoints, let bottomPoints = bottomPoints else { 158 | return nil 159 | } 160 | let interSpace = frame.width / CGFloat(topPoints.count) 161 | let minX = 0 162 | let maxX = max(0, topPoints.count) 163 | let paths = UIBezierPath() 164 | switch waveformConfig.contentType { 165 | case .polyLine: 166 | var firstPoint: CGPoint 167 | switch waveformConfig.positionType { 168 | case .top: firstPoint = CGPoint(x: 0, y: bounds.minY) 169 | case .center: firstPoint = CGPoint(x: 0, y: bounds.midY) 170 | case .bottom: firstPoint = CGPoint(x: 0, y: bounds.maxY) 171 | } 172 | paths.move(to: firstPoint) 173 | for i in minX.. Void) { 20 | workItem.cancel() 21 | self.workItem = DispatchWorkItem {[weak self] in 22 | self?.previousRun = Date() 23 | block() 24 | } 25 | let delay = previousRun.timeIntervalSinceNow > interval ? 0 : interval 26 | DispatchQueue.main.asyncAfter(deadline: .now() + delay, execute: workItem) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Example/ASAudioWaveformView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 11 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 12 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 13 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 14 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 15 | 64BB75692513668500C772EF /* test1.m4a in Resources */ = {isa = PBXBuildFile; fileRef = 64BB75682513668500C772EF /* test1.m4a */; }; 16 | 64F8D55C2510EDB300A887B1 /* test.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 64F8D55B2510EDB300A887B1 /* test.mp3 */; }; 17 | C72329DEEB8A4D502B9B9A26 /* libPods-ASAudioWaveformView_Example.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C06903F04BB831B315F9E3BE /* libPods-ASAudioWaveformView_Example.a */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXFileReference section */ 21 | 3DD7E48B0EE87DA7D26BA9D2 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 22 | 42B191BFDF8959BEDDCA7DA8 /* Pods-ASAudioWaveformView_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ASAudioWaveformView_Example.debug.xcconfig"; path = "Target Support Files/Pods-ASAudioWaveformView_Example/Pods-ASAudioWaveformView_Example.debug.xcconfig"; sourceTree = ""; }; 23 | 5DA2822E19500B09EEC1F204 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 24 | 607FACD01AFB9204008FA782 /* ASAudioWaveformView_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ASAudioWaveformView_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 25 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 26 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 27 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 28 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 29 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 30 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 31 | 64BB75682513668500C772EF /* test1.m4a */ = {isa = PBXFileReference; lastKnownFileType = file; path = test1.m4a; sourceTree = ""; }; 32 | 64F8D55B2510EDB300A887B1 /* test.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = test.mp3; sourceTree = ""; }; 33 | A994102C98D06B039A897382 /* Pods-ASAudioWaveformView_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ASAudioWaveformView_Tests.release.xcconfig"; path = "Target Support Files/Pods-ASAudioWaveformView_Tests/Pods-ASAudioWaveformView_Tests.release.xcconfig"; sourceTree = ""; }; 34 | BC0726072C4239C643459145 /* ASAudioWaveformView.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = ASAudioWaveformView.podspec; path = ../ASAudioWaveformView.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 35 | C06903F04BB831B315F9E3BE /* libPods-ASAudioWaveformView_Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ASAudioWaveformView_Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | D5F7245A64E1FD629EB9D302 /* Pods-ASAudioWaveformView_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ASAudioWaveformView_Example.release.xcconfig"; path = "Target Support Files/Pods-ASAudioWaveformView_Example/Pods-ASAudioWaveformView_Example.release.xcconfig"; sourceTree = ""; }; 37 | DBBE2426B027B3F0F17D6D3B /* Pods-ASAudioWaveformView_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ASAudioWaveformView_Tests.debug.xcconfig"; path = "Target Support Files/Pods-ASAudioWaveformView_Tests/Pods-ASAudioWaveformView_Tests.debug.xcconfig"; sourceTree = ""; }; 38 | FBF8A7742DA885CEC0490B90 /* libPods-ASAudioWaveformView_Tests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ASAudioWaveformView_Tests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | /* End PBXFileReference section */ 40 | 41 | /* Begin PBXFrameworksBuildPhase section */ 42 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 43 | isa = PBXFrameworksBuildPhase; 44 | buildActionMask = 2147483647; 45 | files = ( 46 | C72329DEEB8A4D502B9B9A26 /* libPods-ASAudioWaveformView_Example.a in Frameworks */, 47 | ); 48 | runOnlyForDeploymentPostprocessing = 0; 49 | }; 50 | /* End PBXFrameworksBuildPhase section */ 51 | 52 | /* Begin PBXGroup section */ 53 | 38702FC0410D9CEB578B71F9 /* Pods */ = { 54 | isa = PBXGroup; 55 | children = ( 56 | 42B191BFDF8959BEDDCA7DA8 /* Pods-ASAudioWaveformView_Example.debug.xcconfig */, 57 | D5F7245A64E1FD629EB9D302 /* Pods-ASAudioWaveformView_Example.release.xcconfig */, 58 | DBBE2426B027B3F0F17D6D3B /* Pods-ASAudioWaveformView_Tests.debug.xcconfig */, 59 | A994102C98D06B039A897382 /* Pods-ASAudioWaveformView_Tests.release.xcconfig */, 60 | ); 61 | path = Pods; 62 | sourceTree = ""; 63 | }; 64 | 607FACC71AFB9204008FA782 = { 65 | isa = PBXGroup; 66 | children = ( 67 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 68 | 607FACD21AFB9204008FA782 /* Example for ASAudioWaveformView */, 69 | 607FACD11AFB9204008FA782 /* Products */, 70 | 38702FC0410D9CEB578B71F9 /* Pods */, 71 | AB3B6B35F2BE8DC3982EC546 /* Frameworks */, 72 | ); 73 | sourceTree = ""; 74 | }; 75 | 607FACD11AFB9204008FA782 /* Products */ = { 76 | isa = PBXGroup; 77 | children = ( 78 | 607FACD01AFB9204008FA782 /* ASAudioWaveformView_Example.app */, 79 | ); 80 | name = Products; 81 | sourceTree = ""; 82 | }; 83 | 607FACD21AFB9204008FA782 /* Example for ASAudioWaveformView */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | 64F8D55B2510EDB300A887B1 /* test.mp3 */, 87 | 64BB75682513668500C772EF /* test1.m4a */, 88 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 89 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 90 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 91 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 92 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 93 | 607FACD31AFB9204008FA782 /* Supporting Files */, 94 | ); 95 | name = "Example for ASAudioWaveformView"; 96 | path = ASAudioWaveformView; 97 | sourceTree = ""; 98 | }; 99 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | 607FACD41AFB9204008FA782 /* Info.plist */, 103 | ); 104 | name = "Supporting Files"; 105 | sourceTree = ""; 106 | }; 107 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | BC0726072C4239C643459145 /* ASAudioWaveformView.podspec */, 111 | 5DA2822E19500B09EEC1F204 /* README.md */, 112 | 3DD7E48B0EE87DA7D26BA9D2 /* LICENSE */, 113 | ); 114 | name = "Podspec Metadata"; 115 | sourceTree = ""; 116 | }; 117 | AB3B6B35F2BE8DC3982EC546 /* Frameworks */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | C06903F04BB831B315F9E3BE /* libPods-ASAudioWaveformView_Example.a */, 121 | FBF8A7742DA885CEC0490B90 /* libPods-ASAudioWaveformView_Tests.a */, 122 | ); 123 | name = Frameworks; 124 | sourceTree = ""; 125 | }; 126 | /* End PBXGroup section */ 127 | 128 | /* Begin PBXNativeTarget section */ 129 | 607FACCF1AFB9204008FA782 /* ASAudioWaveformView_Example */ = { 130 | isa = PBXNativeTarget; 131 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ASAudioWaveformView_Example" */; 132 | buildPhases = ( 133 | 6FF3A1E2C209C8AAB212B939 /* [CP] Check Pods Manifest.lock */, 134 | 607FACCC1AFB9204008FA782 /* Sources */, 135 | 607FACCD1AFB9204008FA782 /* Frameworks */, 136 | 607FACCE1AFB9204008FA782 /* Resources */, 137 | ); 138 | buildRules = ( 139 | ); 140 | dependencies = ( 141 | ); 142 | name = ASAudioWaveformView_Example; 143 | productName = ASAudioWaveformView; 144 | productReference = 607FACD01AFB9204008FA782 /* ASAudioWaveformView_Example.app */; 145 | productType = "com.apple.product-type.application"; 146 | }; 147 | /* End PBXNativeTarget section */ 148 | 149 | /* Begin PBXProject section */ 150 | 607FACC81AFB9204008FA782 /* Project object */ = { 151 | isa = PBXProject; 152 | attributes = { 153 | LastSwiftUpdateCheck = 0830; 154 | LastUpgradeCheck = 0830; 155 | ORGANIZATIONNAME = CocoaPods; 156 | TargetAttributes = { 157 | 607FACCF1AFB9204008FA782 = { 158 | CreatedOnToolsVersion = 6.3.1; 159 | LastSwiftMigration = 0900; 160 | }; 161 | }; 162 | }; 163 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "ASAudioWaveformView" */; 164 | compatibilityVersion = "Xcode 3.2"; 165 | developmentRegion = English; 166 | hasScannedForEncodings = 0; 167 | knownRegions = ( 168 | English, 169 | en, 170 | Base, 171 | ); 172 | mainGroup = 607FACC71AFB9204008FA782; 173 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 174 | projectDirPath = ""; 175 | projectRoot = ""; 176 | targets = ( 177 | 607FACCF1AFB9204008FA782 /* ASAudioWaveformView_Example */, 178 | ); 179 | }; 180 | /* End PBXProject section */ 181 | 182 | /* Begin PBXResourcesBuildPhase section */ 183 | 607FACCE1AFB9204008FA782 /* Resources */ = { 184 | isa = PBXResourcesBuildPhase; 185 | buildActionMask = 2147483647; 186 | files = ( 187 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 188 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 189 | 64F8D55C2510EDB300A887B1 /* test.mp3 in Resources */, 190 | 64BB75692513668500C772EF /* test1.m4a in Resources */, 191 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 192 | ); 193 | runOnlyForDeploymentPostprocessing = 0; 194 | }; 195 | /* End PBXResourcesBuildPhase section */ 196 | 197 | /* Begin PBXShellScriptBuildPhase section */ 198 | 6FF3A1E2C209C8AAB212B939 /* [CP] Check Pods Manifest.lock */ = { 199 | isa = PBXShellScriptBuildPhase; 200 | buildActionMask = 2147483647; 201 | files = ( 202 | ); 203 | inputFileListPaths = ( 204 | ); 205 | inputPaths = ( 206 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 207 | "${PODS_ROOT}/Manifest.lock", 208 | ); 209 | name = "[CP] Check Pods Manifest.lock"; 210 | outputFileListPaths = ( 211 | ); 212 | outputPaths = ( 213 | "$(DERIVED_FILE_DIR)/Pods-ASAudioWaveformView_Example-checkManifestLockResult.txt", 214 | ); 215 | runOnlyForDeploymentPostprocessing = 0; 216 | shellPath = /bin/sh; 217 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 218 | showEnvVarsInLog = 0; 219 | }; 220 | /* End PBXShellScriptBuildPhase section */ 221 | 222 | /* Begin PBXSourcesBuildPhase section */ 223 | 607FACCC1AFB9204008FA782 /* Sources */ = { 224 | isa = PBXSourcesBuildPhase; 225 | buildActionMask = 2147483647; 226 | files = ( 227 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 228 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 229 | ); 230 | runOnlyForDeploymentPostprocessing = 0; 231 | }; 232 | /* End PBXSourcesBuildPhase section */ 233 | 234 | /* Begin PBXVariantGroup section */ 235 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 236 | isa = PBXVariantGroup; 237 | children = ( 238 | 607FACDA1AFB9204008FA782 /* Base */, 239 | ); 240 | name = Main.storyboard; 241 | sourceTree = ""; 242 | }; 243 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 244 | isa = PBXVariantGroup; 245 | children = ( 246 | 607FACDF1AFB9204008FA782 /* Base */, 247 | ); 248 | name = LaunchScreen.xib; 249 | sourceTree = ""; 250 | }; 251 | /* End PBXVariantGroup section */ 252 | 253 | /* Begin XCBuildConfiguration section */ 254 | 607FACED1AFB9204008FA782 /* Debug */ = { 255 | isa = XCBuildConfiguration; 256 | buildSettings = { 257 | ALWAYS_SEARCH_USER_PATHS = NO; 258 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 259 | CLANG_CXX_LIBRARY = "libc++"; 260 | CLANG_ENABLE_MODULES = YES; 261 | CLANG_ENABLE_OBJC_ARC = YES; 262 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 263 | CLANG_WARN_BOOL_CONVERSION = YES; 264 | CLANG_WARN_COMMA = YES; 265 | CLANG_WARN_CONSTANT_CONVERSION = YES; 266 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 267 | CLANG_WARN_EMPTY_BODY = YES; 268 | CLANG_WARN_ENUM_CONVERSION = YES; 269 | CLANG_WARN_INFINITE_RECURSION = YES; 270 | CLANG_WARN_INT_CONVERSION = YES; 271 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 272 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 273 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 274 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 275 | CLANG_WARN_STRICT_PROTOTYPES = YES; 276 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 277 | CLANG_WARN_UNREACHABLE_CODE = YES; 278 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 279 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 280 | COPY_PHASE_STRIP = NO; 281 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 282 | ENABLE_STRICT_OBJC_MSGSEND = YES; 283 | ENABLE_TESTABILITY = YES; 284 | GCC_C_LANGUAGE_STANDARD = gnu99; 285 | GCC_DYNAMIC_NO_PIC = NO; 286 | GCC_NO_COMMON_BLOCKS = YES; 287 | GCC_OPTIMIZATION_LEVEL = 0; 288 | GCC_PREPROCESSOR_DEFINITIONS = ( 289 | "DEBUG=1", 290 | "$(inherited)", 291 | ); 292 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 293 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 294 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 295 | GCC_WARN_UNDECLARED_SELECTOR = YES; 296 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 297 | GCC_WARN_UNUSED_FUNCTION = YES; 298 | GCC_WARN_UNUSED_VARIABLE = YES; 299 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 300 | MTL_ENABLE_DEBUG_INFO = YES; 301 | ONLY_ACTIVE_ARCH = YES; 302 | SDKROOT = iphoneos; 303 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 304 | }; 305 | name = Debug; 306 | }; 307 | 607FACEE1AFB9204008FA782 /* Release */ = { 308 | isa = XCBuildConfiguration; 309 | buildSettings = { 310 | ALWAYS_SEARCH_USER_PATHS = NO; 311 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 312 | CLANG_CXX_LIBRARY = "libc++"; 313 | CLANG_ENABLE_MODULES = YES; 314 | CLANG_ENABLE_OBJC_ARC = YES; 315 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 316 | CLANG_WARN_BOOL_CONVERSION = YES; 317 | CLANG_WARN_COMMA = YES; 318 | CLANG_WARN_CONSTANT_CONVERSION = YES; 319 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 320 | CLANG_WARN_EMPTY_BODY = YES; 321 | CLANG_WARN_ENUM_CONVERSION = YES; 322 | CLANG_WARN_INFINITE_RECURSION = YES; 323 | CLANG_WARN_INT_CONVERSION = YES; 324 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 325 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 326 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 327 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 328 | CLANG_WARN_STRICT_PROTOTYPES = YES; 329 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 330 | CLANG_WARN_UNREACHABLE_CODE = YES; 331 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 332 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 333 | COPY_PHASE_STRIP = NO; 334 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 335 | ENABLE_NS_ASSERTIONS = NO; 336 | ENABLE_STRICT_OBJC_MSGSEND = YES; 337 | GCC_C_LANGUAGE_STANDARD = gnu99; 338 | GCC_NO_COMMON_BLOCKS = YES; 339 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 340 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 341 | GCC_WARN_UNDECLARED_SELECTOR = YES; 342 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 343 | GCC_WARN_UNUSED_FUNCTION = YES; 344 | GCC_WARN_UNUSED_VARIABLE = YES; 345 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 346 | MTL_ENABLE_DEBUG_INFO = NO; 347 | SDKROOT = iphoneos; 348 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 349 | VALIDATE_PRODUCT = YES; 350 | }; 351 | name = Release; 352 | }; 353 | 607FACF01AFB9204008FA782 /* Debug */ = { 354 | isa = XCBuildConfiguration; 355 | baseConfigurationReference = 42B191BFDF8959BEDDCA7DA8 /* Pods-ASAudioWaveformView_Example.debug.xcconfig */; 356 | buildSettings = { 357 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 358 | DEVELOPMENT_TEAM = ""; 359 | INFOPLIST_FILE = ASAudioWaveformView/Info.plist; 360 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 361 | MODULE_NAME = ExampleApp; 362 | PRODUCT_BUNDLE_IDENTIFIER = com.andrewshen.waveform; 363 | PRODUCT_NAME = "$(TARGET_NAME)"; 364 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 365 | SWIFT_VERSION = 5.0; 366 | }; 367 | name = Debug; 368 | }; 369 | 607FACF11AFB9204008FA782 /* Release */ = { 370 | isa = XCBuildConfiguration; 371 | baseConfigurationReference = D5F7245A64E1FD629EB9D302 /* Pods-ASAudioWaveformView_Example.release.xcconfig */; 372 | buildSettings = { 373 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 374 | DEVELOPMENT_TEAM = ""; 375 | INFOPLIST_FILE = ASAudioWaveformView/Info.plist; 376 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 377 | MODULE_NAME = ExampleApp; 378 | PRODUCT_BUNDLE_IDENTIFIER = com.andrewshen.waveform; 379 | PRODUCT_NAME = "$(TARGET_NAME)"; 380 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 381 | SWIFT_VERSION = 5.0; 382 | }; 383 | name = Release; 384 | }; 385 | /* End XCBuildConfiguration section */ 386 | 387 | /* Begin XCConfigurationList section */ 388 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "ASAudioWaveformView" */ = { 389 | isa = XCConfigurationList; 390 | buildConfigurations = ( 391 | 607FACED1AFB9204008FA782 /* Debug */, 392 | 607FACEE1AFB9204008FA782 /* Release */, 393 | ); 394 | defaultConfigurationIsVisible = 0; 395 | defaultConfigurationName = Release; 396 | }; 397 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "ASAudioWaveformView_Example" */ = { 398 | isa = XCConfigurationList; 399 | buildConfigurations = ( 400 | 607FACF01AFB9204008FA782 /* Debug */, 401 | 607FACF11AFB9204008FA782 /* Release */, 402 | ); 403 | defaultConfigurationIsVisible = 0; 404 | defaultConfigurationName = Release; 405 | }; 406 | /* End XCConfigurationList section */ 407 | }; 408 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 409 | } 410 | -------------------------------------------------------------------------------- /Example/ASAudioWaveformView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/ASAudioWaveformView.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/ASAudioWaveformView/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // ASAudioWaveformView 4 | // 5 | // Created by Andrew Shen on 09/15/2020. 6 | // Copyright (c) 2020 Andrew Shen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | internal func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/ASAudioWaveformView/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/ASAudioWaveformView/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 62 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /Example/ASAudioWaveformView/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/ASAudioWaveformView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Example/ASAudioWaveformView/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // ASAudioWaveformView 4 | // 5 | // Created by Andrew Shen on 09/15/2020. 6 | // Copyright (c) 2020 Andrew Shen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import ASAudioWaveformView 11 | import CoreMedia 12 | 13 | class ViewController: UIViewController { 14 | var wave: ASAudioWaveformView! 15 | @IBOutlet weak var wave1: ASAudioWaveformView! 16 | @IBOutlet weak var wave2: ASAudioWaveformView! 17 | @IBOutlet weak var wave3: ASAudioWaveformView! 18 | @IBOutlet weak var stackWidth: NSLayoutConstraint! 19 | override func viewDidLoad() { 20 | super.viewDidLoad() 21 | // Do any additional setup after loading the view, typically from a nib. 22 | wave = ASAudioWaveformView.create(frame: .zero) { (config) in 23 | let url = Bundle.main.url(forResource: "test", withExtension: "mp3") 24 | config.audioURL(url).maxSamplesCount(500).fillColor(.systemTeal) 25 | } completion: { (empty) in 26 | print("-->11draw Complete ,empty: \(empty)") 27 | } 28 | wave.backgroundColor = .blue 29 | self.view.addSubview(wave) 30 | 31 | wave1.createWaveform { (config) in 32 | let url = Bundle.main.url(forResource: "test", withExtension: "mp3") 33 | config.audioURL(url).positionType(.top).fillColor(.green) 34 | } 35 | 36 | wave2.createWaveform { (config) in 37 | let url = Bundle.main.url(forResource: "test", withExtension: "mp3") 38 | let range = CMTimeRangeMake(start: CMTime(value: 1000, timescale: 10), duration: CMTime(value: 1000, timescale: 1)) 39 | config.audioURL(url).positionType(.bottom).fillColor(.yellow).timeRange(range) 40 | } 41 | 42 | wave3.createWaveform { (config) in 43 | let url = Bundle.main.url(forResource: "test", withExtension: "mp3") 44 | config.audioURL(url).contentType(.singleLine).maxSamplesCount(300).fillColor(.red) 45 | } completion: { (empty) in 46 | print("-->draw Complete ,empty: \(empty)") 47 | } 48 | } 49 | 50 | override func didReceiveMemoryWarning() { 51 | super.didReceiveMemoryWarning() 52 | // Dispose of any resources that can be recreated. 53 | } 54 | 55 | override func viewDidLayoutSubviews() { 56 | super.viewDidLayoutSubviews() 57 | } 58 | 59 | @IBAction func replaceAudio(_ sender: Any) { 60 | let url = Bundle.main.url(forResource: "test1", withExtension: "m4a") 61 | wave.refreshWaveform(with: url) 62 | wave1.refreshWaveform(with: url) 63 | wave2.refreshWaveform(with: url) 64 | wave3.refreshWaveform(with: url) 65 | } 66 | 67 | @IBAction func zoom(_ sender: Any) { 68 | if wave.frame.equalTo(.zero) { 69 | wave.frame = CGRect(x: 20, y: 40, width: 300, height: 100) 70 | } 71 | else { 72 | wave.frame = CGRect(x: wave.frame.origin.x - 25, y: 40, width: wave.frame.width + 50, height: 100) 73 | } 74 | stackWidth.constant = wave.frame.width + 50 75 | } 76 | 77 | } 78 | 79 | -------------------------------------------------------------------------------- /Example/ASAudioWaveformView/test.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andrewmika/ASAudioWaveformView/0d00d57791d654367b9406767143ed41ec0d5ebd/Example/ASAudioWaveformView/test.mp3 -------------------------------------------------------------------------------- /Example/ASAudioWaveformView/test1.m4a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Andrewmika/ASAudioWaveformView/0d00d57791d654367b9406767143ed41ec0d5ebd/Example/ASAudioWaveformView/test1.m4a -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_modular_headers! 2 | 3 | target 'ASAudioWaveformView_Example' do 4 | pod 'ASAudioWaveformView', :path => '../' 5 | 6 | end 7 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ASAudioWaveformView (1.0.3) 3 | 4 | DEPENDENCIES: 5 | - ASAudioWaveformView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | ASAudioWaveformView: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | ASAudioWaveformView: fca2f678aee37ef6f7df582dfcf1ef6ce25e9af2 13 | 14 | PODFILE CHECKSUM: fd8796fff79d884ec8e4becd8d7bceef93a73dc0 15 | 16 | COCOAPODS: 1.9.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ASAudioWaveformView/ASAudioWaveformView-umbrella.h: -------------------------------------------------------------------------------- 1 | ../../../Target Support Files/ASAudioWaveformView/ASAudioWaveformView-umbrella.h -------------------------------------------------------------------------------- /Example/Pods/Headers/Public/ASAudioWaveformView/ASAudioWaveformView.modulemap: -------------------------------------------------------------------------------- 1 | ../../../Target Support Files/ASAudioWaveformView/ASAudioWaveformView.modulemap -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/ASAudioWaveformView.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ASAudioWaveformView", 3 | "version": "1.0.3", 4 | "summary": "a simple and easy way to create audio waveform view", 5 | "description": "easy to create audio waveform view and it will adjust to fit the frame automatically!!", 6 | "homepage": "https://github.com/Andrewmika/ASAudioWaveformView", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "Andrew Shen": "iandrew@126.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/Andrewmika/ASAudioWaveformView.git", 16 | "tag": "1.0.3" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "ASAudioWaveformView/Classes/**/*", 22 | "swift_versions": "5.0", 23 | "frameworks": "AVFoundation", 24 | "swift_version": "5.0" 25 | } 26 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ASAudioWaveformView (1.0.3) 3 | 4 | DEPENDENCIES: 5 | - ASAudioWaveformView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | ASAudioWaveformView: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | ASAudioWaveformView: fca2f678aee37ef6f7df582dfcf1ef6ce25e9af2 13 | 14 | PODFILE CHECKSUM: fd8796fff79d884ec8e4becd8d7bceef93a73dc0 15 | 16 | COCOAPODS: 1.9.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0AE0DA23B66AD63506193F70B0B9BA98 /* Pods-ASAudioWaveformView_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 006C348BCA07DDF89C8606BFBBBBE5D1 /* Pods-ASAudioWaveformView_Example-umbrella.h */; settings = {ATTRIBUTES = (Project, ); }; }; 11 | 1A92D22F4C79A508302E7BDBCED3B4E9 /* Pods-ASAudioWaveformView_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 8A1866002A6DCC972139EB027DCA73A9 /* Pods-ASAudioWaveformView_Example-dummy.m */; }; 12 | 4587E70FDE7278DF17D012F9B5370A81 /* ASAudioWaveformDataFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0331BA6C244AA0AAF7C650E2B6CCDA63 /* ASAudioWaveformDataFactory.swift */; }; 13 | 6E13FD17F7888CD059A5265A15D288F0 /* ASAudioWaveformView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C0874C8D427D0354AA5F91D0220993F /* ASAudioWaveformView.swift */; }; 14 | 8D93C35391F5472EEA53AE2985C773DE /* ASAudioWaveformDataFilter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8427318A923AB019814C2F65B1EF9A89 /* ASAudioWaveformDataFilter.swift */; }; 15 | BE82087CA50BD2D6D03F50703ADE2CF8 /* ASThrottler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01FE4F3B5D64E914448861BB175D32DF /* ASThrottler.swift */; }; 16 | C59A8298086C02146E628269394C47AB /* ASAudioWaveformConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED2D31ACC700F1F72E45BEF9A90705FB /* ASAudioWaveformConfig.swift */; }; 17 | D322BA7D5F8B93DF5BAF2449BAF93120 /* ASAudioDataReader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2A3A2AEDEB1306E8C15156249C62C452 /* ASAudioDataReader.swift */; }; 18 | D5DFAEE0D3AB1ABA1DBD79B87D3A27FA /* ASAudioWaveformView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 1DE2458F8A5E65784955A81AA3F93397 /* ASAudioWaveformView-umbrella.h */; settings = {ATTRIBUTES = (Project, ); }; }; 19 | FF350F239D4F575933A80F6DE097CCB2 /* ASAudioWaveformView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = F808B7AA0E66EDA07A4433E5BC6DED0F /* ASAudioWaveformView-dummy.m */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 7F547572CD452D74138336753B3EEFE3 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 6541D526F2C0A3A8831FBC602FBD1B25; 28 | remoteInfo = ASAudioWaveformView; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 006C348BCA07DDF89C8606BFBBBBE5D1 /* Pods-ASAudioWaveformView_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-ASAudioWaveformView_Example-umbrella.h"; sourceTree = ""; }; 34 | 01FE4F3B5D64E914448861BB175D32DF /* ASThrottler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ASThrottler.swift; path = ASAudioWaveformView/Classes/ASThrottler.swift; sourceTree = ""; }; 35 | 0331BA6C244AA0AAF7C650E2B6CCDA63 /* ASAudioWaveformDataFactory.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ASAudioWaveformDataFactory.swift; path = ASAudioWaveformView/Classes/ASAudioWaveformDataFactory.swift; sourceTree = ""; }; 36 | 10F26C627B441A6BE9618289576B183E /* Pods-ASAudioWaveformView_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-ASAudioWaveformView_Example.modulemap"; sourceTree = ""; }; 37 | 1DE2458F8A5E65784955A81AA3F93397 /* ASAudioWaveformView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ASAudioWaveformView-umbrella.h"; sourceTree = ""; }; 38 | 2A3A2AEDEB1306E8C15156249C62C452 /* ASAudioDataReader.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ASAudioDataReader.swift; path = ASAudioWaveformView/Classes/ASAudioDataReader.swift; sourceTree = ""; }; 39 | 3362150FCC0F3C0C6EC5DDBD4F82834A /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; path = README.md; sourceTree = ""; }; 40 | 5D86AF6E6D27BB76E6C1FB5182E16B20 /* ASAudioWaveformView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = ASAudioWaveformView.modulemap; sourceTree = ""; }; 41 | 697E5BA361F3EA999F3253EE4D86D167 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; path = LICENSE; sourceTree = ""; }; 42 | 6A656CC54E896760E9D8E26AFB19AE28 /* Pods-ASAudioWaveformView_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ASAudioWaveformView_Example.release.xcconfig"; sourceTree = ""; }; 43 | 6B60511695C89DF1139AC7275C7E96F1 /* ASAudioWaveformView.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ASAudioWaveformView.debug.xcconfig; sourceTree = ""; }; 44 | 6C0874C8D427D0354AA5F91D0220993F /* ASAudioWaveformView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ASAudioWaveformView.swift; path = ASAudioWaveformView/Classes/ASAudioWaveformView.swift; sourceTree = ""; }; 45 | 7AC7E6B367C30F6533C26E8A689BD8C6 /* Pods-ASAudioWaveformView_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-ASAudioWaveformView_Example-acknowledgements.plist"; sourceTree = ""; }; 46 | 81540CE1E34E2B6FFD06DF172802B6C9 /* Pods-ASAudioWaveformView_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-ASAudioWaveformView_Example-acknowledgements.markdown"; sourceTree = ""; }; 47 | 8427318A923AB019814C2F65B1EF9A89 /* ASAudioWaveformDataFilter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ASAudioWaveformDataFilter.swift; path = ASAudioWaveformView/Classes/ASAudioWaveformDataFilter.swift; sourceTree = ""; }; 48 | 8A1866002A6DCC972139EB027DCA73A9 /* Pods-ASAudioWaveformView_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-ASAudioWaveformView_Example-dummy.m"; sourceTree = ""; }; 49 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 50 | C522A1239617BA929B2DB46E6892F162 /* ASAudioWaveformView.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; lastKnownFileType = text; path = ASAudioWaveformView.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 51 | C902986DE75F02829623A22822B98FAB /* libASAudioWaveformView.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libASAudioWaveformView.a; path = libASAudioWaveformView.a; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | D460619DCA65057D897BC9DA279FF692 /* ASAudioWaveformView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "ASAudioWaveformView-prefix.pch"; sourceTree = ""; }; 53 | EBFCC3C94FE112E13F1FBC0F9F86D2EB /* ASAudioWaveformView.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = ASAudioWaveformView.release.xcconfig; sourceTree = ""; }; 54 | ED2D31ACC700F1F72E45BEF9A90705FB /* ASAudioWaveformConfig.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ASAudioWaveformConfig.swift; path = ASAudioWaveformView/Classes/ASAudioWaveformConfig.swift; sourceTree = ""; }; 55 | F58FDA0BA82A5C3ECD6D5D1EEB25FCCB /* Pods-ASAudioWaveformView_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-ASAudioWaveformView_Example.debug.xcconfig"; sourceTree = ""; }; 56 | F808B7AA0E66EDA07A4433E5BC6DED0F /* ASAudioWaveformView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "ASAudioWaveformView-dummy.m"; sourceTree = ""; }; 57 | FA7BDF8B026DEB80091D2108F98F5A13 /* libPods-ASAudioWaveformView_Example.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = "libPods-ASAudioWaveformView_Example.a"; path = "libPods-ASAudioWaveformView_Example.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 25685C17F728A39442CD6EBE4EFF50D0 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | 393B30A910437A23A92C2D0D380E3382 /* Frameworks */ = { 69 | isa = PBXFrameworksBuildPhase; 70 | buildActionMask = 2147483647; 71 | files = ( 72 | ); 73 | runOnlyForDeploymentPostprocessing = 0; 74 | }; 75 | /* End PBXFrameworksBuildPhase section */ 76 | 77 | /* Begin PBXGroup section */ 78 | 2FB7995B8EE4C2AD02F58BCF9E6967F2 /* Support Files */ = { 79 | isa = PBXGroup; 80 | children = ( 81 | 5D86AF6E6D27BB76E6C1FB5182E16B20 /* ASAudioWaveformView.modulemap */, 82 | F808B7AA0E66EDA07A4433E5BC6DED0F /* ASAudioWaveformView-dummy.m */, 83 | D460619DCA65057D897BC9DA279FF692 /* ASAudioWaveformView-prefix.pch */, 84 | 1DE2458F8A5E65784955A81AA3F93397 /* ASAudioWaveformView-umbrella.h */, 85 | 6B60511695C89DF1139AC7275C7E96F1 /* ASAudioWaveformView.debug.xcconfig */, 86 | EBFCC3C94FE112E13F1FBC0F9F86D2EB /* ASAudioWaveformView.release.xcconfig */, 87 | ); 88 | name = "Support Files"; 89 | path = "Example/Pods/Target Support Files/ASAudioWaveformView"; 90 | sourceTree = ""; 91 | }; 92 | 7B814FB94AABDE6CFABCCC8A59A0C486 /* Pod */ = { 93 | isa = PBXGroup; 94 | children = ( 95 | C522A1239617BA929B2DB46E6892F162 /* ASAudioWaveformView.podspec */, 96 | 697E5BA361F3EA999F3253EE4D86D167 /* LICENSE */, 97 | 3362150FCC0F3C0C6EC5DDBD4F82834A /* README.md */, 98 | ); 99 | name = Pod; 100 | sourceTree = ""; 101 | }; 102 | 936A6CF744B2DC1CFE93520456EFB468 /* Targets Support Files */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | FED97141759D6C41AE39D819502E2271 /* Pods-ASAudioWaveformView_Example */, 106 | ); 107 | name = "Targets Support Files"; 108 | sourceTree = ""; 109 | }; 110 | A881F66BB53D797FB5FCF3DDC62D936C /* Development Pods */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | DC72E4A46C671319BFE7DF5367726C7D /* ASAudioWaveformView */, 114 | ); 115 | name = "Development Pods"; 116 | sourceTree = ""; 117 | }; 118 | CAC0651B435DC2CE30C55070B37BE72B /* Products */ = { 119 | isa = PBXGroup; 120 | children = ( 121 | C902986DE75F02829623A22822B98FAB /* libASAudioWaveformView.a */, 122 | FA7BDF8B026DEB80091D2108F98F5A13 /* libPods-ASAudioWaveformView_Example.a */, 123 | ); 124 | name = Products; 125 | sourceTree = ""; 126 | }; 127 | CF1408CF629C7361332E53B88F7BD30C = { 128 | isa = PBXGroup; 129 | children = ( 130 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 131 | A881F66BB53D797FB5FCF3DDC62D936C /* Development Pods */, 132 | D89477F20FB1DE18A04690586D7808C4 /* Frameworks */, 133 | CAC0651B435DC2CE30C55070B37BE72B /* Products */, 134 | 936A6CF744B2DC1CFE93520456EFB468 /* Targets Support Files */, 135 | ); 136 | sourceTree = ""; 137 | }; 138 | D89477F20FB1DE18A04690586D7808C4 /* Frameworks */ = { 139 | isa = PBXGroup; 140 | children = ( 141 | ); 142 | name = Frameworks; 143 | sourceTree = ""; 144 | }; 145 | DC72E4A46C671319BFE7DF5367726C7D /* ASAudioWaveformView */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | 2A3A2AEDEB1306E8C15156249C62C452 /* ASAudioDataReader.swift */, 149 | ED2D31ACC700F1F72E45BEF9A90705FB /* ASAudioWaveformConfig.swift */, 150 | 0331BA6C244AA0AAF7C650E2B6CCDA63 /* ASAudioWaveformDataFactory.swift */, 151 | 8427318A923AB019814C2F65B1EF9A89 /* ASAudioWaveformDataFilter.swift */, 152 | 6C0874C8D427D0354AA5F91D0220993F /* ASAudioWaveformView.swift */, 153 | 01FE4F3B5D64E914448861BB175D32DF /* ASThrottler.swift */, 154 | 7B814FB94AABDE6CFABCCC8A59A0C486 /* Pod */, 155 | 2FB7995B8EE4C2AD02F58BCF9E6967F2 /* Support Files */, 156 | ); 157 | name = ASAudioWaveformView; 158 | path = ../..; 159 | sourceTree = ""; 160 | }; 161 | FED97141759D6C41AE39D819502E2271 /* Pods-ASAudioWaveformView_Example */ = { 162 | isa = PBXGroup; 163 | children = ( 164 | 10F26C627B441A6BE9618289576B183E /* Pods-ASAudioWaveformView_Example.modulemap */, 165 | 81540CE1E34E2B6FFD06DF172802B6C9 /* Pods-ASAudioWaveformView_Example-acknowledgements.markdown */, 166 | 7AC7E6B367C30F6533C26E8A689BD8C6 /* Pods-ASAudioWaveformView_Example-acknowledgements.plist */, 167 | 8A1866002A6DCC972139EB027DCA73A9 /* Pods-ASAudioWaveformView_Example-dummy.m */, 168 | 006C348BCA07DDF89C8606BFBBBBE5D1 /* Pods-ASAudioWaveformView_Example-umbrella.h */, 169 | F58FDA0BA82A5C3ECD6D5D1EEB25FCCB /* Pods-ASAudioWaveformView_Example.debug.xcconfig */, 170 | 6A656CC54E896760E9D8E26AFB19AE28 /* Pods-ASAudioWaveformView_Example.release.xcconfig */, 171 | ); 172 | name = "Pods-ASAudioWaveformView_Example"; 173 | path = "Target Support Files/Pods-ASAudioWaveformView_Example"; 174 | sourceTree = ""; 175 | }; 176 | /* End PBXGroup section */ 177 | 178 | /* Begin PBXHeadersBuildPhase section */ 179 | 58DD59BDE55F9A87D55A50B16C314CF9 /* Headers */ = { 180 | isa = PBXHeadersBuildPhase; 181 | buildActionMask = 2147483647; 182 | files = ( 183 | 0AE0DA23B66AD63506193F70B0B9BA98 /* Pods-ASAudioWaveformView_Example-umbrella.h in Headers */, 184 | ); 185 | runOnlyForDeploymentPostprocessing = 0; 186 | }; 187 | E313F8F05833EE5C5768330E82EB2F68 /* Headers */ = { 188 | isa = PBXHeadersBuildPhase; 189 | buildActionMask = 2147483647; 190 | files = ( 191 | D5DFAEE0D3AB1ABA1DBD79B87D3A27FA /* ASAudioWaveformView-umbrella.h in Headers */, 192 | ); 193 | runOnlyForDeploymentPostprocessing = 0; 194 | }; 195 | /* End PBXHeadersBuildPhase section */ 196 | 197 | /* Begin PBXNativeTarget section */ 198 | 6541D526F2C0A3A8831FBC602FBD1B25 /* ASAudioWaveformView */ = { 199 | isa = PBXNativeTarget; 200 | buildConfigurationList = C5FC3153FDE8F81516826D540888E4CA /* Build configuration list for PBXNativeTarget "ASAudioWaveformView" */; 201 | buildPhases = ( 202 | E313F8F05833EE5C5768330E82EB2F68 /* Headers */, 203 | 83B8AC14D55763F3A23E4C119256ED81 /* Sources */, 204 | 25685C17F728A39442CD6EBE4EFF50D0 /* Frameworks */, 205 | F82DB3D33AE27D028EE8198871F66915 /* Copy generated compatibility header */, 206 | ); 207 | buildRules = ( 208 | ); 209 | dependencies = ( 210 | ); 211 | name = ASAudioWaveformView; 212 | productName = ASAudioWaveformView; 213 | productReference = C902986DE75F02829623A22822B98FAB /* libASAudioWaveformView.a */; 214 | productType = "com.apple.product-type.library.static"; 215 | }; 216 | AE4CE341F2A99B41B32381CC68EAE2CE /* Pods-ASAudioWaveformView_Example */ = { 217 | isa = PBXNativeTarget; 218 | buildConfigurationList = 0143A390F70B60BC8DCE5F6AD852DACE /* Build configuration list for PBXNativeTarget "Pods-ASAudioWaveformView_Example" */; 219 | buildPhases = ( 220 | 58DD59BDE55F9A87D55A50B16C314CF9 /* Headers */, 221 | CCC9844D5D84BC60CDA6200DFEADA2FA /* Sources */, 222 | 393B30A910437A23A92C2D0D380E3382 /* Frameworks */, 223 | ); 224 | buildRules = ( 225 | ); 226 | dependencies = ( 227 | CA90D889F7D590CDC1FBD2EA8DF8F179 /* PBXTargetDependency */, 228 | ); 229 | name = "Pods-ASAudioWaveformView_Example"; 230 | productName = "Pods-ASAudioWaveformView_Example"; 231 | productReference = FA7BDF8B026DEB80091D2108F98F5A13 /* libPods-ASAudioWaveformView_Example.a */; 232 | productType = "com.apple.product-type.library.static"; 233 | }; 234 | /* End PBXNativeTarget section */ 235 | 236 | /* Begin PBXProject section */ 237 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 238 | isa = PBXProject; 239 | attributes = { 240 | LastSwiftUpdateCheck = 1100; 241 | LastUpgradeCheck = 1100; 242 | }; 243 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 244 | compatibilityVersion = "Xcode 3.2"; 245 | developmentRegion = en; 246 | hasScannedForEncodings = 0; 247 | knownRegions = ( 248 | en, 249 | Base, 250 | ); 251 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 252 | productRefGroup = CAC0651B435DC2CE30C55070B37BE72B /* Products */; 253 | projectDirPath = ""; 254 | projectRoot = ""; 255 | targets = ( 256 | 6541D526F2C0A3A8831FBC602FBD1B25 /* ASAudioWaveformView */, 257 | AE4CE341F2A99B41B32381CC68EAE2CE /* Pods-ASAudioWaveformView_Example */, 258 | ); 259 | }; 260 | /* End PBXProject section */ 261 | 262 | /* Begin PBXShellScriptBuildPhase section */ 263 | F82DB3D33AE27D028EE8198871F66915 /* Copy generated compatibility header */ = { 264 | isa = PBXShellScriptBuildPhase; 265 | buildActionMask = 2147483647; 266 | files = ( 267 | ); 268 | inputFileListPaths = ( 269 | ); 270 | inputPaths = ( 271 | "${DERIVED_SOURCES_DIR}/${PRODUCT_MODULE_NAME}-Swift.h", 272 | "${PODS_ROOT}/Headers/Public/ASAudioWaveformView/ASAudioWaveformView.modulemap", 273 | "${PODS_ROOT}/Headers/Public/ASAudioWaveformView/ASAudioWaveformView-umbrella.h", 274 | ); 275 | name = "Copy generated compatibility header"; 276 | outputFileListPaths = ( 277 | ); 278 | outputPaths = ( 279 | "${BUILT_PRODUCTS_DIR}/${PRODUCT_MODULE_NAME}.modulemap", 280 | "${BUILT_PRODUCTS_DIR}/ASAudioWaveformView-umbrella.h", 281 | "${BUILT_PRODUCTS_DIR}/Swift Compatibility Header/${PRODUCT_MODULE_NAME}-Swift.h", 282 | ); 283 | runOnlyForDeploymentPostprocessing = 0; 284 | shellPath = /bin/sh; 285 | shellScript = "COMPATIBILITY_HEADER_PATH=\"${BUILT_PRODUCTS_DIR}/Swift Compatibility Header/${PRODUCT_MODULE_NAME}-Swift.h\"\nMODULE_MAP_PATH=\"${BUILT_PRODUCTS_DIR}/${PRODUCT_MODULE_NAME}.modulemap\"\n\nditto \"${DERIVED_SOURCES_DIR}/${PRODUCT_MODULE_NAME}-Swift.h\" \"${COMPATIBILITY_HEADER_PATH}\"\nditto \"${PODS_ROOT}/Headers/Public/ASAudioWaveformView/ASAudioWaveformView.modulemap\" \"${MODULE_MAP_PATH}\"\nditto \"${PODS_ROOT}/Headers/Public/ASAudioWaveformView/ASAudioWaveformView-umbrella.h\" \"${BUILT_PRODUCTS_DIR}\"\nprintf \"\\n\\nmodule ${PRODUCT_MODULE_NAME}.Swift {\\n header \\\"${COMPATIBILITY_HEADER_PATH}\\\"\\n requires objc\\n}\\n\" >> \"${MODULE_MAP_PATH}\"\n"; 286 | }; 287 | /* End PBXShellScriptBuildPhase section */ 288 | 289 | /* Begin PBXSourcesBuildPhase section */ 290 | 83B8AC14D55763F3A23E4C119256ED81 /* Sources */ = { 291 | isa = PBXSourcesBuildPhase; 292 | buildActionMask = 2147483647; 293 | files = ( 294 | D322BA7D5F8B93DF5BAF2449BAF93120 /* ASAudioDataReader.swift in Sources */, 295 | C59A8298086C02146E628269394C47AB /* ASAudioWaveformConfig.swift in Sources */, 296 | 4587E70FDE7278DF17D012F9B5370A81 /* ASAudioWaveformDataFactory.swift in Sources */, 297 | 8D93C35391F5472EEA53AE2985C773DE /* ASAudioWaveformDataFilter.swift in Sources */, 298 | FF350F239D4F575933A80F6DE097CCB2 /* ASAudioWaveformView-dummy.m in Sources */, 299 | 6E13FD17F7888CD059A5265A15D288F0 /* ASAudioWaveformView.swift in Sources */, 300 | BE82087CA50BD2D6D03F50703ADE2CF8 /* ASThrottler.swift in Sources */, 301 | ); 302 | runOnlyForDeploymentPostprocessing = 0; 303 | }; 304 | CCC9844D5D84BC60CDA6200DFEADA2FA /* Sources */ = { 305 | isa = PBXSourcesBuildPhase; 306 | buildActionMask = 2147483647; 307 | files = ( 308 | 1A92D22F4C79A508302E7BDBCED3B4E9 /* Pods-ASAudioWaveformView_Example-dummy.m in Sources */, 309 | ); 310 | runOnlyForDeploymentPostprocessing = 0; 311 | }; 312 | /* End PBXSourcesBuildPhase section */ 313 | 314 | /* Begin PBXTargetDependency section */ 315 | CA90D889F7D590CDC1FBD2EA8DF8F179 /* PBXTargetDependency */ = { 316 | isa = PBXTargetDependency; 317 | name = ASAudioWaveformView; 318 | target = 6541D526F2C0A3A8831FBC602FBD1B25 /* ASAudioWaveformView */; 319 | targetProxy = 7F547572CD452D74138336753B3EEFE3 /* PBXContainerItemProxy */; 320 | }; 321 | /* End PBXTargetDependency section */ 322 | 323 | /* Begin XCBuildConfiguration section */ 324 | 388CED63E7622EBB99D9CFF5CF94AA48 /* Release */ = { 325 | isa = XCBuildConfiguration; 326 | baseConfigurationReference = 6A656CC54E896760E9D8E26AFB19AE28 /* Pods-ASAudioWaveformView_Example.release.xcconfig */; 327 | buildSettings = { 328 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 329 | CODE_SIGN_IDENTITY = "iPhone Developer"; 330 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 331 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 332 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 333 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 334 | MACH_O_TYPE = staticlib; 335 | MODULEMAP_FILE = "Target Support Files/Pods-ASAudioWaveformView_Example/Pods-ASAudioWaveformView_Example.modulemap"; 336 | OTHER_LDFLAGS = ""; 337 | OTHER_LIBTOOLFLAGS = ""; 338 | PODS_ROOT = "$(SRCROOT)"; 339 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 340 | SDKROOT = iphoneos; 341 | SKIP_INSTALL = YES; 342 | TARGETED_DEVICE_FAMILY = "1,2"; 343 | VALIDATE_PRODUCT = YES; 344 | }; 345 | name = Release; 346 | }; 347 | 576C6E5C7B338120324A8179AE4A426A /* Release */ = { 348 | isa = XCBuildConfiguration; 349 | baseConfigurationReference = EBFCC3C94FE112E13F1FBC0F9F86D2EB /* ASAudioWaveformView.release.xcconfig */; 350 | buildSettings = { 351 | CODE_SIGN_IDENTITY = "iPhone Developer"; 352 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 353 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 354 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 355 | GCC_PREFIX_HEADER = "Target Support Files/ASAudioWaveformView/ASAudioWaveformView-prefix.pch"; 356 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 357 | MODULEMAP_FILE = Headers/Public/ASAudioWaveformView/ASAudioWaveformView.modulemap; 358 | OTHER_LDFLAGS = ""; 359 | OTHER_LIBTOOLFLAGS = ""; 360 | PRIVATE_HEADERS_FOLDER_PATH = ""; 361 | PRODUCT_MODULE_NAME = ASAudioWaveformView; 362 | PRODUCT_NAME = ASAudioWaveformView; 363 | PUBLIC_HEADERS_FOLDER_PATH = ""; 364 | SDKROOT = iphoneos; 365 | SKIP_INSTALL = YES; 366 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 367 | SWIFT_VERSION = 5.0; 368 | TARGETED_DEVICE_FAMILY = "1,2"; 369 | VALIDATE_PRODUCT = YES; 370 | }; 371 | name = Release; 372 | }; 373 | 7E7A6815B67522623DA382B38E38A407 /* Debug */ = { 374 | isa = XCBuildConfiguration; 375 | baseConfigurationReference = 6B60511695C89DF1139AC7275C7E96F1 /* ASAudioWaveformView.debug.xcconfig */; 376 | buildSettings = { 377 | CODE_SIGN_IDENTITY = "iPhone Developer"; 378 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 379 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 380 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 381 | GCC_PREFIX_HEADER = "Target Support Files/ASAudioWaveformView/ASAudioWaveformView-prefix.pch"; 382 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 383 | MODULEMAP_FILE = Headers/Public/ASAudioWaveformView/ASAudioWaveformView.modulemap; 384 | OTHER_LDFLAGS = ""; 385 | OTHER_LIBTOOLFLAGS = ""; 386 | PRIVATE_HEADERS_FOLDER_PATH = ""; 387 | PRODUCT_MODULE_NAME = ASAudioWaveformView; 388 | PRODUCT_NAME = ASAudioWaveformView; 389 | PUBLIC_HEADERS_FOLDER_PATH = ""; 390 | SDKROOT = iphoneos; 391 | SKIP_INSTALL = YES; 392 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 393 | SWIFT_VERSION = 5.0; 394 | TARGETED_DEVICE_FAMILY = "1,2"; 395 | }; 396 | name = Debug; 397 | }; 398 | B0087CB4594321EF41619F3181FE120E /* Release */ = { 399 | isa = XCBuildConfiguration; 400 | buildSettings = { 401 | ALWAYS_SEARCH_USER_PATHS = NO; 402 | CLANG_ANALYZER_NONNULL = YES; 403 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 404 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 405 | CLANG_CXX_LIBRARY = "libc++"; 406 | CLANG_ENABLE_MODULES = YES; 407 | CLANG_ENABLE_OBJC_ARC = YES; 408 | CLANG_ENABLE_OBJC_WEAK = YES; 409 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 410 | CLANG_WARN_BOOL_CONVERSION = YES; 411 | CLANG_WARN_COMMA = YES; 412 | CLANG_WARN_CONSTANT_CONVERSION = YES; 413 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 414 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 415 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 416 | CLANG_WARN_EMPTY_BODY = YES; 417 | CLANG_WARN_ENUM_CONVERSION = YES; 418 | CLANG_WARN_INFINITE_RECURSION = YES; 419 | CLANG_WARN_INT_CONVERSION = YES; 420 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 421 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 422 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 423 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 424 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 425 | CLANG_WARN_STRICT_PROTOTYPES = YES; 426 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 427 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 428 | CLANG_WARN_UNREACHABLE_CODE = YES; 429 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 430 | COPY_PHASE_STRIP = NO; 431 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 432 | ENABLE_NS_ASSERTIONS = NO; 433 | ENABLE_STRICT_OBJC_MSGSEND = YES; 434 | GCC_C_LANGUAGE_STANDARD = gnu11; 435 | GCC_NO_COMMON_BLOCKS = YES; 436 | GCC_PREPROCESSOR_DEFINITIONS = ( 437 | "POD_CONFIGURATION_RELEASE=1", 438 | "$(inherited)", 439 | ); 440 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 441 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 442 | GCC_WARN_UNDECLARED_SELECTOR = YES; 443 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 444 | GCC_WARN_UNUSED_FUNCTION = YES; 445 | GCC_WARN_UNUSED_VARIABLE = YES; 446 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 447 | MTL_ENABLE_DEBUG_INFO = NO; 448 | MTL_FAST_MATH = YES; 449 | PRODUCT_NAME = "$(TARGET_NAME)"; 450 | STRIP_INSTALLED_PRODUCT = NO; 451 | SWIFT_COMPILATION_MODE = wholemodule; 452 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 453 | SWIFT_VERSION = 5.0; 454 | SYMROOT = "${SRCROOT}/../build"; 455 | }; 456 | name = Release; 457 | }; 458 | B8BCBD0110C2658BB5DAADB9B7D97B92 /* Debug */ = { 459 | isa = XCBuildConfiguration; 460 | buildSettings = { 461 | ALWAYS_SEARCH_USER_PATHS = NO; 462 | CLANG_ANALYZER_NONNULL = YES; 463 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 464 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 465 | CLANG_CXX_LIBRARY = "libc++"; 466 | CLANG_ENABLE_MODULES = YES; 467 | CLANG_ENABLE_OBJC_ARC = YES; 468 | CLANG_ENABLE_OBJC_WEAK = YES; 469 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 470 | CLANG_WARN_BOOL_CONVERSION = YES; 471 | CLANG_WARN_COMMA = YES; 472 | CLANG_WARN_CONSTANT_CONVERSION = YES; 473 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 474 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 475 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 476 | CLANG_WARN_EMPTY_BODY = YES; 477 | CLANG_WARN_ENUM_CONVERSION = YES; 478 | CLANG_WARN_INFINITE_RECURSION = YES; 479 | CLANG_WARN_INT_CONVERSION = YES; 480 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 481 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 482 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 483 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 484 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 485 | CLANG_WARN_STRICT_PROTOTYPES = YES; 486 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 487 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 488 | CLANG_WARN_UNREACHABLE_CODE = YES; 489 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 490 | COPY_PHASE_STRIP = NO; 491 | DEBUG_INFORMATION_FORMAT = dwarf; 492 | ENABLE_STRICT_OBJC_MSGSEND = YES; 493 | ENABLE_TESTABILITY = YES; 494 | GCC_C_LANGUAGE_STANDARD = gnu11; 495 | GCC_DYNAMIC_NO_PIC = NO; 496 | GCC_NO_COMMON_BLOCKS = YES; 497 | GCC_OPTIMIZATION_LEVEL = 0; 498 | GCC_PREPROCESSOR_DEFINITIONS = ( 499 | "POD_CONFIGURATION_DEBUG=1", 500 | "DEBUG=1", 501 | "$(inherited)", 502 | ); 503 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 504 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 505 | GCC_WARN_UNDECLARED_SELECTOR = YES; 506 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 507 | GCC_WARN_UNUSED_FUNCTION = YES; 508 | GCC_WARN_UNUSED_VARIABLE = YES; 509 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 510 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 511 | MTL_FAST_MATH = YES; 512 | ONLY_ACTIVE_ARCH = YES; 513 | PRODUCT_NAME = "$(TARGET_NAME)"; 514 | STRIP_INSTALLED_PRODUCT = NO; 515 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 516 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 517 | SWIFT_VERSION = 5.0; 518 | SYMROOT = "${SRCROOT}/../build"; 519 | }; 520 | name = Debug; 521 | }; 522 | EB9FD5ABE11D854C239EA110792E81BC /* Debug */ = { 523 | isa = XCBuildConfiguration; 524 | baseConfigurationReference = F58FDA0BA82A5C3ECD6D5D1EEB25FCCB /* Pods-ASAudioWaveformView_Example.debug.xcconfig */; 525 | buildSettings = { 526 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 527 | CODE_SIGN_IDENTITY = "iPhone Developer"; 528 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 529 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 530 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 531 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 532 | MACH_O_TYPE = staticlib; 533 | MODULEMAP_FILE = "Target Support Files/Pods-ASAudioWaveformView_Example/Pods-ASAudioWaveformView_Example.modulemap"; 534 | OTHER_LDFLAGS = ""; 535 | OTHER_LIBTOOLFLAGS = ""; 536 | PODS_ROOT = "$(SRCROOT)"; 537 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 538 | SDKROOT = iphoneos; 539 | SKIP_INSTALL = YES; 540 | TARGETED_DEVICE_FAMILY = "1,2"; 541 | }; 542 | name = Debug; 543 | }; 544 | /* End XCBuildConfiguration section */ 545 | 546 | /* Begin XCConfigurationList section */ 547 | 0143A390F70B60BC8DCE5F6AD852DACE /* Build configuration list for PBXNativeTarget "Pods-ASAudioWaveformView_Example" */ = { 548 | isa = XCConfigurationList; 549 | buildConfigurations = ( 550 | EB9FD5ABE11D854C239EA110792E81BC /* Debug */, 551 | 388CED63E7622EBB99D9CFF5CF94AA48 /* Release */, 552 | ); 553 | defaultConfigurationIsVisible = 0; 554 | defaultConfigurationName = Release; 555 | }; 556 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 557 | isa = XCConfigurationList; 558 | buildConfigurations = ( 559 | B8BCBD0110C2658BB5DAADB9B7D97B92 /* Debug */, 560 | B0087CB4594321EF41619F3181FE120E /* Release */, 561 | ); 562 | defaultConfigurationIsVisible = 0; 563 | defaultConfigurationName = Release; 564 | }; 565 | C5FC3153FDE8F81516826D540888E4CA /* Build configuration list for PBXNativeTarget "ASAudioWaveformView" */ = { 566 | isa = XCConfigurationList; 567 | buildConfigurations = ( 568 | 7E7A6815B67522623DA382B38E38A407 /* Debug */, 569 | 576C6E5C7B338120324A8179AE4A426A /* Release */, 570 | ); 571 | defaultConfigurationIsVisible = 0; 572 | defaultConfigurationName = Release; 573 | }; 574 | /* End XCConfigurationList section */ 575 | }; 576 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 577 | } 578 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ASAudioWaveformView/ASAudioWaveformView-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ASAudioWaveformView/ASAudioWaveformView-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_ASAudioWaveformView : NSObject 3 | @end 4 | @implementation PodsDummy_ASAudioWaveformView 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ASAudioWaveformView/ASAudioWaveformView-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ASAudioWaveformView/ASAudioWaveformView-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double ASAudioWaveformViewVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char ASAudioWaveformViewVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ASAudioWaveformView/ASAudioWaveformView.debug.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/ASAudioWaveformView 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS -import-underlying-module -Xcc -fmodule-map-file="${SRCROOT}/${MODULEMAP_FILE}" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ASAudioWaveformView/ASAudioWaveformView.modulemap: -------------------------------------------------------------------------------- 1 | module ASAudioWaveformView { 2 | umbrella header "ASAudioWaveformView-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/ASAudioWaveformView/ASAudioWaveformView.release.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/ASAudioWaveformView 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS -import-underlying-module -Xcc -fmodule-map-file="${SRCROOT}/${MODULEMAP_FILE}" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ASAudioWaveformView_Example/Pods-ASAudioWaveformView_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ASAudioWaveformView_Example/Pods-ASAudioWaveformView_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## ASAudioWaveformView 5 | 6 | Copyright (c) 2020 Andrew Shen 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ASAudioWaveformView_Example/Pods-ASAudioWaveformView_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2020 Andrew Shen <iandrew@126.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | ASAudioWaveformView 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ASAudioWaveformView_Example/Pods-ASAudioWaveformView_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ASAudioWaveformView_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ASAudioWaveformView_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ASAudioWaveformView_Example/Pods-ASAudioWaveformView_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | 23 | # Used as a return value for each invocation of `strip_invalid_archs` function. 24 | STRIP_BINARY_RETVAL=0 25 | 26 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 27 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 28 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 29 | 30 | # Copies and strips a vendored framework 31 | install_framework() 32 | { 33 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 34 | local source="${BUILT_PRODUCTS_DIR}/$1" 35 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 36 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 37 | elif [ -r "$1" ]; then 38 | local source="$1" 39 | fi 40 | 41 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 42 | 43 | if [ -L "${source}" ]; then 44 | echo "Symlinked..." 45 | source="$(readlink "${source}")" 46 | fi 47 | 48 | # Use filter instead of exclude so missing patterns don't throw errors. 49 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 50 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 51 | 52 | local basename 53 | basename="$(basename -s .framework "$1")" 54 | binary="${destination}/${basename}.framework/${basename}" 55 | 56 | if ! [ -r "$binary" ]; then 57 | binary="${destination}/${basename}" 58 | elif [ -L "${binary}" ]; then 59 | echo "Destination binary is symlinked..." 60 | dirname="$(dirname "${binary}")" 61 | binary="${dirname}/$(readlink "${binary}")" 62 | fi 63 | 64 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 65 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 66 | strip_invalid_archs "$binary" 67 | fi 68 | 69 | # Resign the code if required by the build settings to avoid unstable apps 70 | code_sign_if_enabled "${destination}/$(basename "$1")" 71 | 72 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 73 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 74 | local swift_runtime_libs 75 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 76 | for lib in $swift_runtime_libs; do 77 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 78 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 79 | code_sign_if_enabled "${destination}/${lib}" 80 | done 81 | fi 82 | } 83 | 84 | # Copies and strips a vendored dSYM 85 | install_dsym() { 86 | local source="$1" 87 | warn_missing_arch=${2:-true} 88 | if [ -r "$source" ]; then 89 | # Copy the dSYM into the targets temp dir. 90 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 91 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 92 | 93 | local basename 94 | basename="$(basename -s .dSYM "$source")" 95 | binary_name="$(ls "$source/Contents/Resources/DWARF")" 96 | binary="${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}" 97 | 98 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 99 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 100 | strip_invalid_archs "$binary" "$warn_missing_arch" 101 | fi 102 | 103 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 104 | # Move the stripped file into its final destination. 105 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 106 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 107 | else 108 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 109 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM" 110 | fi 111 | fi 112 | } 113 | 114 | # Copies the bcsymbolmap files of a vendored framework 115 | install_bcsymbolmap() { 116 | local bcsymbolmap_path="$1" 117 | local destination="${BUILT_PRODUCTS_DIR}" 118 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 119 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 120 | } 121 | 122 | # Signs a framework with the provided identity 123 | code_sign_if_enabled() { 124 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 125 | # Use the current code_sign_identity 126 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 127 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 128 | 129 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 130 | code_sign_cmd="$code_sign_cmd &" 131 | fi 132 | echo "$code_sign_cmd" 133 | eval "$code_sign_cmd" 134 | fi 135 | } 136 | 137 | # Strip invalid architectures 138 | strip_invalid_archs() { 139 | binary="$1" 140 | warn_missing_arch=${2:-true} 141 | # Get architectures for current target binary 142 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 143 | # Intersect them with the architectures we are building for 144 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 145 | # If there are no archs supported by this binary then warn the user 146 | if [[ -z "$intersected_archs" ]]; then 147 | if [[ "$warn_missing_arch" == "true" ]]; then 148 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 149 | fi 150 | STRIP_BINARY_RETVAL=0 151 | return 152 | fi 153 | stripped="" 154 | for arch in $binary_archs; do 155 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 156 | # Strip non-valid architectures in-place 157 | lipo -remove "$arch" -output "$binary" "$binary" 158 | stripped="$stripped $arch" 159 | fi 160 | done 161 | if [[ "$stripped" ]]; then 162 | echo "Stripped $binary of architectures:$stripped" 163 | fi 164 | STRIP_BINARY_RETVAL=1 165 | } 166 | 167 | install_artifact() { 168 | artifact="$1" 169 | base="$(basename "$artifact")" 170 | case $base in 171 | *.framework) 172 | install_framework "$artifact" 173 | ;; 174 | *.dSYM) 175 | # Suppress arch warnings since XCFrameworks will include many dSYM files 176 | install_dsym "$artifact" "false" 177 | ;; 178 | *.bcsymbolmap) 179 | install_bcsymbolmap "$artifact" 180 | ;; 181 | *) 182 | echo "error: Unrecognized artifact "$artifact"" 183 | ;; 184 | esac 185 | } 186 | 187 | copy_artifacts() { 188 | file_list="$1" 189 | while read artifact; do 190 | install_artifact "$artifact" 191 | done <$file_list 192 | } 193 | 194 | ARTIFACT_LIST_FILE="${BUILT_PRODUCTS_DIR}/cocoapods-artifacts-${CONFIGURATION}.txt" 195 | if [ -r "${ARTIFACT_LIST_FILE}" ]; then 196 | copy_artifacts "${ARTIFACT_LIST_FILE}" 197 | fi 198 | 199 | if [[ "$CONFIGURATION" == "Debug" ]]; then 200 | install_framework "${BUILT_PRODUCTS_DIR}/ASAudioWaveformView/ASAudioWaveformView.framework" 201 | fi 202 | if [[ "$CONFIGURATION" == "Release" ]]; then 203 | install_framework "${BUILT_PRODUCTS_DIR}/ASAudioWaveformView/ASAudioWaveformView.framework" 204 | fi 205 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 206 | wait 207 | fi 208 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ASAudioWaveformView_Example/Pods-ASAudioWaveformView_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_ASAudioWaveformView_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_ASAudioWaveformView_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ASAudioWaveformView_Example/Pods-ASAudioWaveformView_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ASAudioWaveformView" 4 | OTHER_CFLAGS = $(inherited) -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/ASAudioWaveformView/ASAudioWaveformView.modulemap" 5 | OTHER_LDFLAGS = $(inherited) -ObjC -l"ASAudioWaveformView" -framework "AVFoundation" 6 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/ASAudioWaveformView/ASAudioWaveformView.modulemap" 7 | PODS_BUILD_DIR = ${BUILD_DIR} 8 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 9 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 10 | PODS_ROOT = ${SRCROOT}/Pods 11 | SWIFT_INCLUDE_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ASAudioWaveformView" 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ASAudioWaveformView_Example/Pods-ASAudioWaveformView_Example.modulemap: -------------------------------------------------------------------------------- 1 | module Pods_ASAudioWaveformView_Example { 2 | umbrella header "Pods-ASAudioWaveformView_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-ASAudioWaveformView_Example/Pods-ASAudioWaveformView_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LIBRARY_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ASAudioWaveformView" 4 | OTHER_CFLAGS = $(inherited) -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/ASAudioWaveformView/ASAudioWaveformView.modulemap" 5 | OTHER_LDFLAGS = $(inherited) -ObjC -l"ASAudioWaveformView" -framework "AVFoundation" 6 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS -Xcc -fmodule-map-file="${PODS_CONFIGURATION_BUILD_DIR}/ASAudioWaveformView/ASAudioWaveformView.modulemap" 7 | PODS_BUILD_DIR = ${BUILD_DIR} 8 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 9 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 10 | PODS_ROOT = ${SRCROOT}/Pods 11 | SWIFT_INCLUDE_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ASAudioWaveformView" 12 | USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES 13 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2020 Andrew Shen 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ASAudioWaveformView 2 | 3 | [![Version](https://img.shields.io/cocoapods/v/ASAudioWaveformView.svg?style=flat)](https://cocoapods.org/pods/ASAudioWaveformView) 4 | [![License](https://img.shields.io/cocoapods/l/ASAudioWaveformView.svg?style=flat)](https://cocoapods.org/pods/ASAudioWaveformView) 5 | [![Platform](https://img.shields.io/cocoapods/p/ASAudioWaveformView.svg?style=flat)](https://cocoapods.org/pods/ASAudioWaveformView) 6 | 7 | ## Example 8 | 9 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 10 | 11 | ![zoom](https://raw.githubusercontent.com/Andrewmika/MyPicBed/master/img/zoom1.gif) 12 | 13 | 14 | ## Requirements 15 | swift 5.0+ 16 | 17 | ## Installation 18 | 19 | ASAudioWaveformView is available through [CocoaPods](https://cocoapods.org). To install 20 | it, simply add the following line to your Podfile: 21 | 22 | ```ruby 23 | pod 'ASAudioWaveformView' 24 | ``` 25 | 26 | ## Usage 27 | ### there are two ways to create waveform view, waveform will adjust to fit the frame automatically 28 | 29 | 1. init with frame. 30 | completion is Optional 31 | 32 | ```swift 33 | let wave = ASAudioWaveformView.create(frame: CGRect(x: 0, y: 40, width: 200, height: 100)) { (config) in 34 | let url = Bundle.main.url(forResource: "test", withExtension: "mp3") 35 | config.audioURL(url).maxSamplesCount(500).fillColor(.systemTeal) 36 | } completion: { (empty) in 37 | print("-->draw Complete ,empty: \(empty)") 38 | } 39 | ``` 40 | 2. if you use Autolayout or set the frame later. 41 | completion is Optional 42 | 43 | ```swift 44 | let wave = ASAudioWaveformView() 45 | wave.createWaveform { (config) in 46 | let url = Bundle.main.url(forResource: "test", withExtension: "mp3") 47 | config.audioURL(url).positionType(.top).fillColor(.green) 48 | } completion: { (empty) in 49 | print("-->draw Complete ,empty: \(empty)") 50 | } 51 | ``` 52 | 53 | #### config waveform 54 | ``` 55 | /// config waveform postion, the default is center 56 | public func positionType(_ type: ASAudioWaveformView.PositionType) -> ASAudioWaveformConfig 57 | 58 | /// config waveform content style, the default is polyline 59 | public func contentType(_ type: ASAudioWaveformView.ContentType) -> ASAudioWaveformConfig 60 | 61 | /// config waveform fill color, the default is yellow 62 | public func fillColor(_ color: UIColor) -> ASAudioWaveformConfig 63 | 64 | /// config waveform audio source 65 | public func audioURL(_ URL: URL?) -> ASAudioWaveformConfig 66 | 67 | /// config max samples count, the default is 1000 68 | public func maxSamplesCount(_ count: Int) -> ASAudioWaveformConfig 69 | 70 | /// Specifies a range of time that may limit the temporal portion of the receiver's asset from which media data will be read.The default value of timeRange is CMTimeRangeMake(kCMTimeZero, kCMTimePositiveInfinity). 71 | public func timeRange(_ range: CMTimeRange) -> ASAudioWaveformConfig 72 | ``` 73 | 74 | 1. position type center, content type polyLine 75 | 76 | ![center](https://raw.githubusercontent.com/Andrewmika/MyPicBed/master/img/center.png) 77 | 78 | 2. position type top, content type polyLine 79 | 80 | ![top](https://raw.githubusercontent.com/Andrewmika/MyPicBed/master/img/top.png) 81 | 82 | 3. position type bottom, content type polyLine 83 | 84 | ![bottom](https://raw.githubusercontent.com/Andrewmika/MyPicBed/master/img/bottom.png) 85 | 86 | 4. position type center, content type singleLine 87 | 88 | ![single](https://raw.githubusercontent.com/Andrewmika/MyPicBed/master/img/single.png) 89 | 90 | ### reload with different audio URL 91 | waveform will adjust to fit the frame automatically 92 | 93 | ``` 94 | /// Refresh waveform by audio url 95 | public func refreshWaveform(with audioURL: URL?) 96 | ``` 97 | 98 | 99 | ## Author 100 | 101 | Andrew Shen, iandrew@126.com 102 | 103 | ## License 104 | 105 | ASAudioWaveformView is available under the MIT license. See the LICENSE file for more info. 106 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------