| 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 #ifndef MEDIA_BASE_AUDIO_FIFO_H_ | 5 #ifndef MEDIA_BASE_AUDIO_FIFO_H_ |
| 6 #define MEDIA_BASE_AUDIO_FIFO_H_ | 6 #define MEDIA_BASE_AUDIO_FIFO_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "media/base/audio_bus.h" | 9 #include "media/base/audio_bus.h" |
| 9 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
| 10 | 11 |
| 11 namespace media { | 12 namespace media { |
| 12 | 13 |
| 13 // First-in first-out container for AudioBus elements. | 14 // First-in first-out container for AudioBus elements. |
| 14 // The maximum number of audio frames in the FIFO is set at construction and | 15 // The maximum number of audio frames in the FIFO is set at construction and |
| 15 // can not be extended dynamically. The allocated memory is utilized as a | 16 // can not be extended dynamically. The allocated memory is utilized as a |
| 16 // ring buffer. | 17 // ring buffer. |
| 17 // This class is thread-unsafe. | 18 // This class is thread-unsafe. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 58 |
| 58 // Current write position. | 59 // Current write position. |
| 59 int write_pos_; | 60 int write_pos_; |
| 60 | 61 |
| 61 DISALLOW_COPY_AND_ASSIGN(AudioFifo); | 62 DISALLOW_COPY_AND_ASSIGN(AudioFifo); |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 } // namespace media | 65 } // namespace media |
| 65 | 66 |
| 66 #endif // MEDIA_BASE_AUDIO_FIFO_H_ | 67 #endif // MEDIA_BASE_AUDIO_FIFO_H_ |
| OLD | NEW |