| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_ENCODER_H_ | 5 #ifndef PPAPI_CPP_AUDIO_ENCODER_H_ |
| 6 #define PPAPI_CPP_AUDIO_ENCODER_H_ | 6 #define PPAPI_CPP_AUDIO_ENCODER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include "ppapi/c/pp_codecs.h" | 10 #include "ppapi/c/pp_codecs.h" |
| 9 #include "ppapi/c/ppb_audio_buffer.h" | 11 #include "ppapi/c/ppb_audio_buffer.h" |
| 10 #include "ppapi/cpp/audio_buffer.h" | 12 #include "ppapi/cpp/audio_buffer.h" |
| 11 #include "ppapi/cpp/completion_callback.h" | 13 #include "ppapi/cpp/completion_callback.h" |
| 12 #include "ppapi/cpp/resource.h" | 14 #include "ppapi/cpp/resource.h" |
| 13 | 15 |
| 14 /// @file | 16 /// @file |
| 15 /// This file defines the API to create and use a AudioEncoder resource. | 17 /// This file defines the API to create and use a AudioEncoder resource. |
| 16 | 18 |
| 17 namespace pp { | 19 namespace pp { |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 /// callbacks will still run, reporting <code>PP_ERROR_ABORTED</code> . It is | 155 /// callbacks will still run, reporting <code>PP_ERROR_ABORTED</code> . It is |
| 154 /// not valid to call any encoder functions after a call to this method. | 156 /// not valid to call any encoder functions after a call to this method. |
| 155 /// <strong>Note:</strong> Destroying the audio encoder closes it implicitly, | 157 /// <strong>Note:</strong> Destroying the audio encoder closes it implicitly, |
| 156 /// so you are not required to call Close(). | 158 /// so you are not required to call Close(). |
| 157 void Close(); | 159 void Close(); |
| 158 }; | 160 }; |
| 159 | 161 |
| 160 } // namespace pp | 162 } // namespace pp |
| 161 | 163 |
| 162 #endif // PPAPI_CPP_AUDIO_ENCODER_H_ | 164 #endif // PPAPI_CPP_AUDIO_ENCODER_H_ |
| OLD | NEW |