Skip to content

Commit

Permalink
Add getDuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tiendn committed Sep 11, 2017
1 parent cc72835 commit ea53015
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ export default class Sound {
*/
getNumberOfChannels(): number

/**
* Return the time of audio (second)
*/
getDuration(): number

/**
* Return the volume of the audio player (not the system-wide volume),
* Ranges from 0.0 (silence) through 1.0 (full volume, the default)
Expand Down

0 comments on commit ea53015

Please sign in to comment.