W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2013

Fwd: memory footprint of AudioBuffer data copies

From: Joseph Berkovitz <joe@noteflight.com>
Date: Tue, 30 Jul 2013 09:50:24 -0400
To: Jer Noble <jer.noble@apple.com>, WG WG <public-audio@w3.org>
Message-Id: <20237AF7-F281-47F7-97E2-1EDFAE8BA863@noteflight.com>

One of the main issues raised by Chris Wilson with respect to your proposal was memory footprint with respect to bulk synthesis of large AudioBuffers, and the overhead for copying them.

Let me ask a leading question: isn't one of the side benefits of the AudioBufferChannel.set() method the fact that it allows one to populate an AudioBuffer in chunks of a manageable size? It seems to me that if bulk synthesis can be performed in reasonable-size chunks, each of which is passed to the set() method to be copied into the corresponding subrange of the buffer, the maximum memory overhead due to copying can be constrained to 2x the chunk size.

If true, this doesn't completely remove Chris W's concern but it does mean that a chunked approach to buffer synthesis can mitigate overhead in a low-memory environment.

.            .       .    .  . ...Joe

Joe Berkovitz

Noteflight LLC
Boston, Mass.
phone: +1 978 314 6271
"Your music, everywhere"

Received on Tuesday, 30 July 2013 13:50:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:23 UTC