Reset indexer upon initialization in AudioLoop.

The array is reset in Init() but not the indexer. This makes the start point undefined after Init() for re-initializing an AudioLoop. This can be fixed.

BUG=

Review URL: https://codereview.webrtc.org/1727353002

Cr-Commit-Position: refs/heads/master@{#11739}
This commit is contained in:
minyue
2016-02-24 03:49:19 -08:00
committed by Commit bot
parent 2346c5a728
commit 58e08cbea8
2 changed files with 5 additions and 4 deletions

View File

@ -40,6 +40,7 @@ bool AudioLoop::Init(const std::string file_name,
loop_length_samples_ = samples_read;
block_length_samples_ = block_length_samples;
next_index_ = 0;
return true;
}