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_H_ | 5 #ifndef MEDIA_BASE_AUDIO_BUFFER_H_ |
6 #define MEDIA_BASE_AUDIO_BUFFER_H_ | 6 #define MEDIA_BASE_AUDIO_BUFFER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/aligned_memory.h" | 10 #include "base/memory/aligned_memory.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/time.h" | 13 #include "base/time/time.h" |
14 #include "media/base/media_export.h" | 14 #include "media/base/media_export.h" |
15 #include "media/base/sample_format.h" | 15 #include "media/base/sample_format.h" |
16 | 16 |
17 namespace media { | 17 namespace media { |
18 class AudioBus; | 18 class AudioBus; |
19 | 19 |
20 // An audio buffer that takes a copy of the data passed to it, holds it, and | 20 // An audio buffer that takes a copy of the data passed to it, holds it, and |
21 // copies it into an AudioBus when needed. Also supports an end of stream | 21 // copies it into an AudioBus when needed. Also supports an end of stream |
22 // marker. | 22 // marker. |
23 class MEDIA_EXPORT AudioBuffer | 23 class MEDIA_EXPORT AudioBuffer |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 // For planar data, points to each channels data. | 90 // For planar data, points to each channels data. |
91 std::vector<uint8*> channel_data_; | 91 std::vector<uint8*> channel_data_; |
92 | 92 |
93 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioBuffer); | 93 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioBuffer); |
94 }; | 94 }; |
95 | 95 |
96 } // namespace media | 96 } // namespace media |
97 | 97 |
98 #endif // MEDIA_BASE_AUDIO_BUFFER_H_ | 98 #endif // MEDIA_BASE_AUDIO_BUFFER_H_ |
OLD | NEW |