From 653b7130179cfb11c7e65bc81868ecec10a768f4 Mon Sep 17 00:00:00 2001 From: swaroopbutala Date: Fri, 16 Jan 2015 01:00:42 -0800 Subject: [PATCH 1/3] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0ab2768..143803e 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ Then, you only need to call one method to start playing your audio. ###Local playing If you need to play a local file, call ```-startPlayingLocalFileWithName:atPath:withCompletionBlock:```. If you want to use the default path, just set it as ```nil```. +If you want to set a specific path do include the actual file name in the path itself. For eg: ```/var/mobile/Containers/Data/Application/XXX/Documents/sample.m4a```. Also in this case you can set the name to ```nil``` Example: From 32a732c6ba6a597fd357f0c5372d0a3e11926637 Mon Sep 17 00:00:00 2001 From: swaroopbutala Date: Fri, 16 Jan 2015 01:01:37 -0800 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 143803e..efbf2e4 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Then, you only need to call one method to start playing your audio. ###Local playing If you need to play a local file, call ```-startPlayingLocalFileWithName:atPath:withCompletionBlock:```. If you want to use the default path, just set it as ```nil```. -If you want to set a specific path do include the actual file name in the path itself. For eg: ```/var/mobile/Containers/Data/Application/XXX/Documents/sample.m4a```. Also in this case you can set the name to ```nil``` +If you want to set a specific path, do include the actual file name in the path itself. For eg: ```/var/mobile/Containers/Data/Application/XXX/Documents/sample.m4a```. Also in this case you can set the Name to ```nil``` Example: From e7938f816b5f9bcee3a414c0dca8869597248cc8 Mon Sep 17 00:00:00 2001 From: swaroopbutala Date: Fri, 16 Jan 2015 01:03:43 -0800 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index efbf2e4..528cd10 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ If you want to set a specific path, do include the actual file name in the path Example: - [[AFSoundManager sharedManager] startPlayingLocalFileWithName:@"filename.mp3" atPath:nil withCompletionBlock:^(int percentage, CGFloat elapsedTime, CGFloat timeRemaining, NSError *error) { + [[AFSoundManager sharedManager] startPlayingLocalFileWithName:@"filename.mp3" atPath:nil withCompletionBlock:^(int percentage, CGFloat elapsedTime, CGFloat timeRemaining, NSError *error, BOOL finished) { if (!error) //This block will be fired when the audio progress increases in 1%