| 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 | 5 |
| 6 /** | 6 /** |
| 7 * Defines the <code>PPB_AudioFrame</code> interface. | 7 * Defines the <code>PPB_AudioFrame</code> interface. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 [generate_thunk] | 10 [generate_thunk] |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 * | 41 * |
| 42 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame | 42 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame |
| 43 * resource. | 43 * resource. |
| 44 * @param[in] timestamp A <code>PP_TimeDelta</code> containing the timestamp | 44 * @param[in] timestamp A <code>PP_TimeDelta</code> containing the timestamp |
| 45 * of the audio frame. Given in seconds since the start of the containing | 45 * of the audio frame. Given in seconds since the start of the containing |
| 46 * audio stream. | 46 * audio stream. |
| 47 */ | 47 */ |
| 48 void SetTimestamp([in] PP_Resource frame, [in] PP_TimeDelta timestamp); | 48 void SetTimestamp([in] PP_Resource frame, [in] PP_TimeDelta timestamp); |
| 49 | 49 |
| 50 /** | 50 /** |
| 51 * Gets the sample rate of the audio frame. |
| 52 * |
| 53 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame |
| 54 * resource. |
| 55 * |
| 56 * @return The sample rate of the audio frame. |
| 57 */ |
| 58 [on_failure=PP_AUDIOSAMPLERATE_NONE] |
| 59 PP_AudioSampleRate GetSampleRate([in] PP_Resource frame); |
| 60 |
| 61 /** |
| 51 * Gets the sample size of the audio frame. | 62 * Gets the sample size of the audio frame. |
| 52 * | 63 * |
| 53 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame | 64 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame |
| 54 * resource. | 65 * resource. |
| 55 * | 66 * |
| 56 * @return The sample size of the audio frame. | 67 * @return The sample size of the audio frame. |
| 57 */ | 68 */ |
| 58 uint32_t GetSampleSize([in] PP_Resource frame); | 69 uint32_t GetSampleSize([in] PP_Resource frame); |
| 59 | 70 |
| 60 /** | 71 /** |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 /** | 103 /** |
| 93 * Gets the size of the data buffer in bytes. | 104 * Gets the size of the data buffer in bytes. |
| 94 * | 105 * |
| 95 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame | 106 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame |
| 96 * resource. | 107 * resource. |
| 97 * | 108 * |
| 98 * @return The size of the data buffer in bytes. | 109 * @return The size of the data buffer in bytes. |
| 99 */ | 110 */ |
| 100 uint32_t GetDataBufferSize([in] PP_Resource frame); | 111 uint32_t GetDataBufferSize([in] PP_Resource frame); |
| 101 }; | 112 }; |
| OLD | NEW |