Feature/early duration

Replaces:
 - zohararad/audio5js#47
 - zohararad/audio5js#48