Skip to content

Commit

Permalink
Update playing documentation in README.md
Browse files Browse the repository at this point in the history
Update the documentation of playing function, the description is clearly saying that if no ID is passed, there will be a result anyway, which makes id parameter optional.
  • Loading branch information
theodiablo authored Dec 11, 2019
1 parent e25974d commit 0bb4b10
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 0bb4b10

Please sign in to comment.