blackberry/WebWorks-Community-APIs — pull request #181 by khuynh12 (2013-07-15 17:49:44+00:00)
Title: Created new function getDuration which will return the duration of a inputed file name, by request of Erik Oros.

The success call will now return the duration of a sound file.

For example:

PGLowLatencyAudio.getDuration("alien.wav", function(duration) {
if (duration > 6) {
// Body to do if duration is greater than 6
alert("GREATER THAN 6"); // should alert true.
} else {
// Body to do if duration is less than 6
alert("LESS THAN 6");
}
});

Also changed up README.