OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/filters/audio_renderer_algorithm.h" | 5 #include "media/renderers/audio_renderer_algorithm.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "media/base/audio_buffer.h" | 12 #include "media/base/audio_buffer.h" |
13 #include "media/base/audio_bus.h" | 13 #include "media/base/audio_bus.h" |
14 #include "media/base/limits.h" | 14 #include "media/base/limits.h" |
15 #include "media/filters/wsola_internals.h" | 15 #include "media/filters/wsola_internals.h" |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 read_offset_frames = 0; | 379 read_offset_frames = 0; |
380 num_frames_to_read -= num_zero_frames_appended; | 380 num_frames_to_read -= num_zero_frames_appended; |
381 write_offset = num_zero_frames_appended; | 381 write_offset = num_zero_frames_appended; |
382 dest->ZeroFrames(num_zero_frames_appended); | 382 dest->ZeroFrames(num_zero_frames_appended); |
383 } | 383 } |
384 audio_buffer_.PeekFrames(num_frames_to_read, read_offset_frames, | 384 audio_buffer_.PeekFrames(num_frames_to_read, read_offset_frames, |
385 write_offset, dest); | 385 write_offset, dest); |
386 } | 386 } |
387 | 387 |
388 } // namespace media | 388 } // namespace media |
OLD | NEW |