| Index: webrtc/modules/audio_coding/neteq/tools/audio_loop.cc
|
| diff --git a/webrtc/modules/audio_coding/neteq/tools/audio_loop.cc b/webrtc/modules/audio_coding/neteq/tools/audio_loop.cc
|
| index 2d2a7e3dd4ad926421922ad845711545bc7d6403..eed95753f0f3e2ea636c429562fb650e57ce2d66 100644
|
| --- a/webrtc/modules/audio_coding/neteq/tools/audio_loop.cc
|
| +++ b/webrtc/modules/audio_coding/neteq/tools/audio_loop.cc
|
| @@ -43,13 +43,14 @@ bool AudioLoop::Init(const std::string file_name,
|
| return true;
|
| }
|
|
|
| -const int16_t* AudioLoop::GetNextBlock() {
|
| +rtc::ArrayView<const int16_t> AudioLoop::GetNextBlock() {
|
| // Check that the AudioLoop is initialized.
|
| - if (block_length_samples_ == 0) return NULL;
|
| + if (block_length_samples_ == 0)
|
| + return rtc::ArrayView<const int16_t>();
|
|
|
| const int16_t* output_ptr = &audio_array_[next_index_];
|
| next_index_ = (next_index_ + block_length_samples_) % loop_length_samples_;
|
| - return output_ptr;
|
| + return rtc::ArrayView<const int16_t>(output_ptr, block_length_samples_);
|
| }
|
|
|
|
|
|
|