Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1004: Specify copyFrom/To channel behavior #1158

Merged
merged 2 commits into from
Mar 23, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4492,6 +4492,15 @@ <h2 id="AudioBuffer">
the specified channel of the <a>AudioBuffer</a> to the
<code>destination</code> array.
</p>
<p>
Let <code>buffer</code> be the <a>AudioBuffer</a> buffer with
\(N_b\) frames, let \(N_f\) be the number of elements in the
<code>destination</code> array, and \(k\) be the value of
<code>startInChannel</code>. Then the number of frames copied
from <code>buffer</code> to <code>destination</code> is
\(\min(N_b - k, N_f)\). If this is less than \(N_f\), then the
remaining elements of <code>destination</code> are not modified.
</p>
<dl class="parameters">
<dt>
Float32Array destination
Expand Down Expand Up @@ -4528,6 +4537,15 @@ <h2 id="AudioBuffer">
specified channel of the <a>AudioBuffer</a>, from the
<code>source</code> array.
</p>
<p>
Let <code>buffer</code> be the <a>AudioBuffer</a> with \(N_b\)
frames, let \(N_f\) be the number of elements in the
<code>source</code> array, and \(k\) be the value of
<code>startInChannel</code>. Then the number of frames copied
from <code>source</code> to the <code>buffer</code> is \(\min(N_b
- k, N_f)\). If this is less than \(N_f\), then the remaining
elements of <code>buffer</code> are not modified.
</p>
<dl class="parameters">
<dt>
Float32Array source
Expand Down