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 PPAPI_CPP_AUDIO_BUFFER_H_ | 5 #ifndef PPAPI_CPP_AUDIO_BUFFER_H_ |
6 #define PPAPI_CPP_AUDIO_BUFFER_H_ | 6 #define PPAPI_CPP_AUDIO_BUFFER_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "ppapi/c/ppb_audio_buffer.h" | 10 #include "ppapi/c/ppb_audio_buffer.h" |
9 #include "ppapi/cpp/resource.h" | 11 #include "ppapi/cpp/resource.h" |
10 | 12 |
11 namespace pp { | 13 namespace pp { |
12 | 14 |
13 class AudioBuffer : public Resource { | 15 class AudioBuffer : public Resource { |
14 public: | 16 public: |
15 /// Default constructor for creating an is_null() | 17 /// Default constructor for creating an is_null() |
16 /// <code>AudioBuffer</code> object. | 18 /// <code>AudioBuffer</code> object. |
17 AudioBuffer(); | 19 AudioBuffer(); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 78 |
77 /// Gets the size of data buffer in bytes. | 79 /// Gets the size of data buffer in bytes. |
78 /// | 80 /// |
79 /// @return The size of the data buffer in bytes. | 81 /// @return The size of the data buffer in bytes. |
80 uint32_t GetDataBufferSize() const; | 82 uint32_t GetDataBufferSize() const; |
81 }; | 83 }; |
82 | 84 |
83 } // namespace pp | 85 } // namespace pp |
84 | 86 |
85 #endif // PPAPI_CPP_AUDIO_BUFFER_H_ | 87 #endif // PPAPI_CPP_AUDIO_BUFFER_H_ |
OLD | NEW |