Commit 6b2502fc authored by ckehoe's avatar ckehoe Committed by Commit bot

Using AudioBus::ZeroFramesPartial() instead of manual zeroing.

Review URL: https://codereview.chromium.org/1018093002

Cr-Commit-Position: refs/heads/master@{#321218}
parent 86e260e3
......@@ -214,9 +214,9 @@ class ChromeWhispernetClientTest : public ExtensionBrowserTest,
saved_samples_index_ += frames_to_copy;
// Pad any remaining space with zeroes.
for (int i = remaining_frames; i < dest->frames(); i++) {
for (int c = 0; c < dest->channels(); c++)
dest->channel(c)[i] = 0;
if (remaining_frames < dest->frames()) {
dest->ZeroFramesPartial(remaining_frames,
dest->frames() - remaining_frames);
}
// Return the volume level.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment