Skip to content

Commit

Permalink
Reduce the required C++ standard by a few years..
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed May 1, 2016
1 parent 212837c commit 177f9cc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Core/HW/StereoStretcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,10 @@ void StereoStretcher::PushSamples(const s32 * samples, unsigned int num_samples)

stats_.watermark = stretch_.GetSamplesQueued();
mutex_.lock();
size_t total_size = std::accumulate(queue.begin(), queue.end(), 0, [](size_t sum, const auto& buffer) {
return sum + buffer.size();
});
size_t total_size = 0;
for (auto iter = queue.begin(); iter != queue.end(); ++iter) {
total_size += iter->size();
}
double now = real_time_now();
stats_.duration = now - last_now_;
last_now_ = now;
Expand Down

0 comments on commit 177f9cc

Please sign in to comment.