W3C home > Mailing lists > Public > public-audio@w3.org > October to December 2011

Playback position with AudioBufferSourceNode

From: Robert Clouth <rob.clouth@gmail.com>
Date: Fri, 2 Dec 2011 13:29:56 +0000
Message-ID: <CALbutwnAAEtjvvwWRrXfLsF=7rUktjgzXG+jy9bc6ncRYXwawQ@mail.gmail.com>
To: public-audio@w3.org

We need to get the current playback position of the AudioBufferSourceNode
but we can't seem to find anything about it. At the moment we can calculate
it by subtracting the time it starting playing from the
context.currentTime, but this assumes playback speed is constant -- which
soon it won't be. Has it been implemented but not documented? I hope so,
because the only other option would be the find the integral of the
playbackRate changes since it started playing...


Rob Clouth
Received on Friday, 2 December 2011 13:33:01 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:49:57 UTC