OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BUFFER_QUEUE_H_ | 5 #ifndef MEDIA_BASE_AUDIO_BUFFER_QUEUE_H_ |
6 #define MEDIA_BASE_AUDIO_BUFFER_QUEUE_H_ | 6 #define MEDIA_BASE_AUDIO_BUFFER_QUEUE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
12 #include "media/base/audio_buffer.h" | 11 #include "media/base/audio_buffer.h" |
13 #include "media/base/media_export.h" | 12 #include "media/base/media_export.h" |
14 | 13 |
15 namespace media { | 14 namespace media { |
16 | 15 |
17 class AudioBus; | 16 class AudioBus; |
18 | 17 |
19 // A queue of AudioBuffers to support reading of arbitrary chunks of a media | 18 // A queue of AudioBuffers to support reading of arbitrary chunks of a media |
20 // data source. Audio data can be copied into an AudioBus for output. The | 19 // data source. Audio data can be copied into an AudioBus for output. The |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 79 |
81 // Number of frames available to be read in the buffer. | 80 // Number of frames available to be read in the buffer. |
82 int frames_; | 81 int frames_; |
83 | 82 |
84 DISALLOW_COPY_AND_ASSIGN(AudioBufferQueue); | 83 DISALLOW_COPY_AND_ASSIGN(AudioBufferQueue); |
85 }; | 84 }; |
86 | 85 |
87 } // namespace media | 86 } // namespace media |
88 | 87 |
89 #endif // MEDIA_BASE_AUDIO_BUFFER_QUEUE_H_ | 88 #endif // MEDIA_BASE_AUDIO_BUFFER_QUEUE_H_ |
OLD | NEW |