Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken headings in Markdown files #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions Old version/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ iOS audio playing (both local and streaming) and recording made easy through a c

![alt text](https://raw.github.com/AlvaroFranco/AFSoundManager/master/preview.png "Preview")

##Installation
## Installation

AFSoundManager is available on CocoaPods so you can get it by adding this line to your Podfile:

Expand All @@ -25,15 +25,15 @@ If you don't use CocoaPods, you will have to import these files into your projec

Also, you need to import the ```AudioToolbox``` framework and te ```AudioFoundation``` framework.

##Usage
## Usage

First of all, make sure that you have imported the main class into the class where you are going to play audio.

#import "AFSoundManager.h"

Then, you only need to call one method to start playing your audio.

###Local playing
### 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```.

Example:
Expand All @@ -47,7 +47,7 @@ Example:
}
}];

###Audio streaming
### Audio streaming
For remote audio, call ```-startStreamingRemoteAudioFromURL:andBlock:```

Example:
Expand All @@ -61,7 +61,7 @@ Example:
}
}];

###Control
### Control
If you need to pause, resume or stop the current playing, guess what, there's a method for that!

[[AFSoundManager sharedManager]pause];
Expand Down Expand Up @@ -89,7 +89,7 @@ In order to change the volume, call ```-changeVolumeToValue:``` by passing a dec

[[AFSoundManager sharedManager] changeVolumeToValue:0.750000]; //This will put the volume at 75%

###Playing status
### Playing status

In order to get noticed of the playing status changes, you need to implement the *AFSoundManagerDelegate* by adding it to your class, just like other delegates.

Expand Down Expand Up @@ -123,7 +123,7 @@ Then, just implement the ```currentPlayingStatusChanged:``` method in the class

Handle the change in each case.

###Background playing
### Background playing

If you want to enable background playing, make sure you have Background Modes enabled on your project, under the Capabilities section:

Expand All @@ -133,7 +133,7 @@ Also, add this information to your info.plist file:

![alt text](https://raw.github.com/AlvaroFranco/AFSoundManager/master/plist-data.png "")

###Output manage
### Output manage
AFSoundManager also lets you choose which device do you want to use to play the audio. I mean, even if you have your headphones plugged in, you can force the audio to play on the built-in speakers or play it through the headphones.

If the headphones (or any external speaker) are plugged in and you want to play it on the built-in speakers, call:
Expand All @@ -152,15 +152,15 @@ And if you want to check if the headphones, or a external speaker, are currently
//Headphones NOT connected
}

##Recording audio
## Recording audio

Start recording audio from the device's microphone is easy peasy!

[[AFSoundManager sharedManager] startRecordingAudioWithFileName:@"recording" andExtension:@"mp3" shouldStopAtSecond:25];

**If you don't want recording to stop automatically**, set shouldStopAtSecond as **0** or **nil**.

###Control the recording
### Control the recording

AFSoundManager let's you perform several actions with your current recording:

Expand All @@ -171,8 +171,8 @@ AFSoundManager let's you perform several actions with your current recording:

Lastly, to get the current recording duration, call ```-timeRecorded``` which will return a NSTimeInterval object.

##License
## License
AFSoundManager is under MIT license so feel free to use it!

##Author
## Author
Made by Alvaro Franco. If you have any question, feel free to drop me a line at [alvarofrancoayala@gmail.com](mailto:alvarofrancoayala@gmail.com)
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ AFSoundManager v2

iOS audio playing (both local and streaming) and recording made easy through a complete and block-driven Objective-C class. AFSoundManager uses AudioToolbox and AVFoundation frameworks to serve the audio.

##Installation
## Installation

###CocoaPods
### CocoaPods

AFSoundManager is available on CocoaPods so you can get it by adding this line to your Podfile:

pod 'AFSoundManager'

###Manual
### Manual

If you don't use CocoaPods, you will have to import these files into your project:

Expand All @@ -36,7 +36,7 @@ If you don't use CocoaPods, you will have to import these files into your projec

Also, you need to import AVFoundation, AudioToolbox and MediaPlayer frameworks.

##Roadmap
## Roadmap

Since the v2.0 is a very first version, there's a lot of work remaining. This is a sneak peek of what's coming soon:

Expand All @@ -45,9 +45,9 @@ Since the v2.0 is a very first version, there's a lot of work remaining. This is
* [ ] A brand new class to let AFSoundPlayback handle real time effects like delay, a customized EQ, etc.
* [ ] AFSoundManager-ready UI controls to integrate a fulfilled play control in your app at a glance, powered by AFSoundManager.

##Usage
## Usage

###Playing a sound
### Playing a sound

```AFSoundItem``` will take care of any sound item, and it will be handled by ```AFSoundPlayback```. The ```AFSoundItem``` will contain the location and the metadata of each sound, song, chapter, etc.

Expand Down