Skip to content

Commit

Permalink
Merge pull request #1261 from theodiablo/patch-1
Browse files Browse the repository at this point in the history
Update playing documentation in README.md
  • Loading branch information
goldfire committed Dec 24, 2019
2 parents e25974d + 0bb4b10 commit b137373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ Get/set whether to loop the sound or group. This method can optionally take 0, 1
#### state()
Check the load status of the `Howl`, returns a `unloaded`, `loading` or `loaded`.

#### playing(id)
#### playing([id])
Check if a sound is currently playing or not, returns a `Boolean`. If no sound ID is passed, check if any sound in the `Howl` group is playing.
* **id**: `Number` The sound ID to check.
* **id**: `Number` `optional` The sound ID to check.

#### duration([id])
Get the duration of the audio source (in seconds). Will return 0 until after the `load` event fires.
Expand Down

0 comments on commit b137373

Please sign in to comment.