OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef MEDIA_BASE_AUDIO_BLOCK_FIFO_H_ | 5 #ifndef MEDIA_BASE_AUDIO_BLOCK_FIFO_H_ |
6 #define MEDIA_BASE_AUDIO_BLOCK_FIFO_H_ | 6 #define MEDIA_BASE_AUDIO_BLOCK_FIFO_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
9 #include "media/base/audio_bus.h" | 10 #include "media/base/audio_bus.h" |
10 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
11 | 12 |
12 namespace media { | 13 namespace media { |
13 | 14 |
14 // First-in first-out container for AudioBus elements. | 15 // First-in first-out container for AudioBus elements. |
15 // The FIFO is composed of blocks of AudioBus elements, it accepts interleaved | 16 // The FIFO is composed of blocks of AudioBus elements, it accepts interleaved |
16 // data as input and will deinterleave it into the FIFO, and it only allows | 17 // data as input and will deinterleave it into the FIFO, and it only allows |
17 // consuming a whole block of AudioBus element. | 18 // consuming a whole block of AudioBus element. |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 71 |
71 // Current write position in the current written block. | 72 // Current write position in the current written block. |
72 int write_pos_; | 73 int write_pos_; |
73 | 74 |
74 DISALLOW_COPY_AND_ASSIGN(AudioBlockFifo); | 75 DISALLOW_COPY_AND_ASSIGN(AudioBlockFifo); |
75 }; | 76 }; |
76 | 77 |
77 } // namespace media | 78 } // namespace media |
78 | 79 |
79 #endif // MEDIA_BASE_AUDIO_BLOCK_FIFO_H_ | 80 #endif // MEDIA_BASE_AUDIO_BLOCK_FIFO_H_ |
OLD | NEW |