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

Change request: playbackPosition attribute for AudioBufferSourceNode

From: Robert Clouth <rob.clouth@gmail.com>
Date: Fri, 2 Dec 2011 14:33:29 +0000
Message-ID: <CALbutwk2vik_Jw7o0uFvBTcv28t08HR+VSOckK1TaXkmXq-3Tg@mail.gmail.com>
To: public-audio@w3.org, crogers@google.com
Hi,

AudioBufferSourceNode is missing a playbackPosition attribute that
is essential for wave views and playback position displays. We think
it requires only a simple change to the code. What's is the procedure for
change requests?


Proposed additions:

AudioBufferSourceNode.h:
float playbackPosition() { return m_virtualReadIndex / sampleRate; }

AudioBufferSourceNode.idl:
readonly attribute float playbackPosition;

Thanks,

Rob Clouth
Received on Friday, 2 December 2011 14:33:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 2 December 2011 14:33:58 GMT