Skip to content

Commit d019e6a

Browse files
committed
Chore(Project): addition of bell mp3 file and trigger test
1 parent b84b19d commit d019e6a

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Example/SoundWave.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
0C36F9731DF702B1001A0F23 /* AudioRecorderManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C36F9711DF702B1001A0F23 /* AudioRecorderManager.swift */; };
1313
0C36F9751DF7045D001A0F23 /* AudioErrorType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C36F9741DF7045D001A0F23 /* AudioErrorType.swift */; };
1414
0CF7A0441DF7387300A46D4C /* SoundWave+Helpers.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0CF7A0431DF7387300A46D4C /* SoundWave+Helpers.swift */; };
15+
13914E8A226D27DB0045C99D /* Bell.mp3 in Resources */ = {isa = PBXBuildFile; fileRef = 13914E89226D27DA0045C99D /* Bell.mp3 */; };
1516
40144728817BA31B396A9E61 /* Pods_SoundWave_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 70C5A476D8539422A7DD5391 /* Pods_SoundWave_Example.framework */; };
1617
607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; };
1718
607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; };
@@ -39,6 +40,7 @@
3940
0C36F9711DF702B1001A0F23 /* AudioRecorderManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AudioRecorderManager.swift; sourceTree = "<group>"; };
4041
0C36F9741DF7045D001A0F23 /* AudioErrorType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AudioErrorType.swift; sourceTree = "<group>"; };
4142
0CF7A0431DF7387300A46D4C /* SoundWave+Helpers.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "SoundWave+Helpers.swift"; sourceTree = "<group>"; };
43+
13914E89226D27DA0045C99D /* Bell.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = Bell.mp3; sourceTree = "<group>"; };
4244
3AFD797C4A2888A01D51DD7D /* Pods-SoundWave_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SoundWave_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-SoundWave_Example/Pods-SoundWave_Example.release.xcconfig"; sourceTree = "<group>"; };
4345
4A7954A0D9F1F67919EBA6E3 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
4446
607FACD01AFB9204008FA782 /* SoundWave_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SoundWave_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -137,6 +139,7 @@
137139
607FACD31AFB9204008FA782 /* Supporting Files */ = {
138140
isa = PBXGroup;
139141
children = (
142+
13914E89226D27DA0045C99D /* Bell.mp3 */,
140143
607FACD41AFB9204008FA782 /* Info.plist */,
141144
607FACDE1AFB9204008FA782 /* LaunchScreen.xib */,
142145
607FACDC1AFB9204008FA782 /* Images.xcassets */,
@@ -270,6 +273,7 @@
270273
buildActionMask = 2147483647;
271274
files = (
272275
607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */,
276+
13914E8A226D27DB0045C99D /* Bell.mp3 in Resources */,
273277
607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */,
274278
607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */,
275279
);

Example/SoundWave/Bell.mp3

240 KB
Binary file not shown.

Example/SoundWave/ViewController.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ final class ViewController: UIViewController {
7676
self?.currentState = .recorded
7777
self?.audioVisualizationView.stop()
7878
}
79+
80+
// Test Code
81+
let path = Bundle.main.path(forResource: "Bell", ofType: "mp3")!
82+
let url = URL(fileURLWithPath: path)
83+
self.audioVisualizationView.play(from: url)
7984
}
8085

8186
// MARK: - Actions

0 commit comments

Comments
 (0)