W3C home > Mailing lists > Public > public-audio@w3.org > January to March 2012

replay AudioBufferSourceNode ?

From: Jerome Etienne <jerome.etienne@gmail.com>
Date: Tue, 20 Mar 2012 08:29:26 +0100
Message-ID: <CAN_PVv7GgiT9gR1_yZCZn8qOkz=U5LqXvMang1z_ObCKrOJ6JA@mail.gmail.com>
To: public-audio@w3.org
Hello

As i understand AudioBufferSourceNode Interface[1], it isn't possible
to play several time a bufferSource (correct me if im wrong).
Nevertheless in a game, a sound is played many-many times. So
BufferSource javascript object needs to be recreated, fully
reconfigured and reconnect every time you play it. This is rather
cumbersome for the developer. How can i clone an existing BufferSource
? maybe somebody did a javascript function on top of the spec ?

Jerome

[1] https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AudioBufferSourceNode-section
Received on Tuesday, 20 March 2012 07:29:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 20 March 2012 07:30:21 GMT