1,295
edits
| Line 22: | Line 22: | ||
# If any of the <tt>AudioBuffer</tt>'s <tt>ArrayBuffer</tt>s have been neutered, abort these steps and return zero-length channel data buffers to the invoker. | # If any of the <tt>AudioBuffer</tt>'s <tt>ArrayBuffer</tt>s have been neutered, abort these steps and return zero-length channel data buffers to the invoker. | ||
# Neuter all <tt>ArrayBuffer</tt>s for arrays previously returned by <tt>getChannelData</tt> on this <tt>AudioBuffer</tt>. | # Neuter all <tt>ArrayBuffer</tt>s for arrays previously returned by <tt>getChannelData</tt> on this <tt>AudioBuffer</tt>. | ||
# | # Retain the underlying data buffers from those <tt>ArrayBuffer</tt>s and return references to them to the invoker. | ||
# Attach <tt>ArrayBuffer</tt>s containing copies of the data to the <tt>AudioBuffer</tt>, to be returned by the next call to <tt>getChannelData</tt>. | # Attach <tt>ArrayBuffer</tt>s containing copies of the data to the <tt>AudioBuffer</tt>, to be returned by the next call to <tt>getChannelData</tt>. | ||
edits