Skip to content

Commit 8407c8c

Browse files
Merge pull request #128 from piotrowski/patch-1
fix headline
2 parents 6c17389 + 1a022be commit 8407c8c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Cordova Native Audio Plugin
1+
# Cordova Native Audio Plugin
22

33
Cordova / PhoneGap 3.5+ extension for Native Audio playback, aimed at HTML5 gaming and audio applications which require minimum latency, polyphony and concurrency.
44

@@ -49,17 +49,17 @@ Via Cordova CLI:
4949
cordova plugin add cordova-plugin-nativeaudio
5050
```
5151

52-
##Usage
52+
## Usage
5353

5454

5555
1. Wait for `deviceReady`.
5656
1. Preload an audio asset and assign an id - either optimized for single-shot style short clips (`preloadSimple()`) or looping, ambient background audio (`preloadComplex()`)
5757
2. `play()` the audio asset via its id.
5858
3. `unload()` the audio asset via its id.
5959

60-
##API
60+
## API
6161

62-
###Preloading
62+
### Preloading
6363

6464
```javascript
6565
preloadSimple: function ( id, assetPath, successCallback, errorCallback)
@@ -86,7 +86,7 @@ Uses highlevel native APIs with a larger footprint. (iOS: AVAudioPlayer).
8686
Can be stopped / looped and used with multiple voices. Can be faded in and out using the delay parameter.
8787

8888

89-
####Volume & Voices
89+
#### Volume & Voices
9090

9191
The default **volume** is 1.0, a lower default can be set by using a numerical value from 0.1 to 1.0.
9292

@@ -95,7 +95,7 @@ If there are multiple voices (number greater than 0), it will cycle through voic
9595

9696
Change the float-based **delay** parameter to increase the fade-in/fade-out timing.
9797

98-
###Playback
98+
### Playback
9999

100100
* params
101101
* id - string unique ID for the audio file

0 commit comments

Comments
 (0)