Skip to content

Commit

Permalink
adjust isPlaying() method to use negation and adjust Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Wafford committed May 8, 2015
1 parent 3794f4c commit 43c3f72
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ All methods are intentionally public, but the most readily available are the fol
* `empty()` – Clears the waveform as if a zero-length audio is loaded.
* `getCurrentTime()` – Returns current progress in seconds.
* `getDuration()` – Returns the duration of an audio clip in seconds.
* `isPlaying()` – Returns true if currently playing, false otherwise.
* `load(url)` – Loads audio from URL via XHR. Returns XHR object.
* `loadBlob(url)` – Loads audio from a `Blob` or `File` object.
* `on(eventName, callback)` – Subscribes to an event. See [WaveSurfer Events](#wavesurfer-events) section below for a list.
Expand All @@ -92,7 +93,6 @@ All methods are intentionally public, but the most readily available are the fol
* `pause()` – Stops playback.
* `play([start[, end]])` – Starts playback from the current position. Optional `start` and `end` measured in seconds can be used to set the range of audio to play.
* `playPause()` – Plays if paused, pauses if playing.
* `isPlaying()` – Returns true if currently playing, false otherwise.
* `seekAndCenter(progress)` – Seeks to a progress and centers view `[0..1]` (0 = beginning, 1 = end).
* `seekTo(progress)` – Seeks to a progress `[0..1]` (0=beginning, 1=end).
* `setFilter(filters)` - For inserting your own WebAudio nodes into the graph. See [Connecting Filters](#connecting-filters) below.
Expand Down
Loading

0 comments on commit 43c3f72

Please sign in to comment.