| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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 * This file defines the <code>PPB_Audio</code> interface, which provides | 7 * This file defines the <code>PPB_Audio</code> interface, which provides |
| 8 * realtime stereo audio streaming capabilities. | 8 * realtime stereo audio streaming capabilities. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 label Chrome { | 11 label Chrome { |
| 12 M13 = 0.6, | |
| 13 M14 = 1.0 | 12 M14 = 1.0 |
| 14 }; | 13 }; |
| 15 | 14 |
| 16 /** | 15 /** |
| 17 * <code>PPB_Audio_Callback</code> defines the type of an audio callback | 16 * <code>PPB_Audio_Callback</code> defines the type of an audio callback |
| 18 * function used to fill the audio buffer with data. Please see the | 17 * function used to fill the audio buffer with data. Please see the |
| 19 * <code>Create()</code> function in the <code>PPB_Audio</code> interface for | 18 * <code>Create()</code> function in the <code>PPB_Audio</code> interface for |
| 20 * more details on this callback. | 19 * more details on this callback. |
| 21 */ | 20 */ |
| 22 typedef void PPB_Audio_Callback([out] mem_t sample_buffer, | 21 typedef void PPB_Audio_Callback([out] mem_t sample_buffer, |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 * | 124 * |
| 126 * @return A PP_BOOL containing PP_TRUE if successful, otherwise PP_FALSE. | 125 * @return A PP_BOOL containing PP_TRUE if successful, otherwise PP_FALSE. |
| 127 * Also returns PP_TRUE (and is a no-op) if called while playback is already | 126 * Also returns PP_TRUE (and is a no-op) if called while playback is already |
| 128 * stopped. If a callback is in progress, StopPlayback will block until the | 127 * stopped. If a callback is in progress, StopPlayback will block until the |
| 129 * callback completes. | 128 * callback completes. |
| 130 */ | 129 */ |
| 131 PP_Bool StopPlayback( | 130 PP_Bool StopPlayback( |
| 132 [in] PP_Resource audio); | 131 [in] PP_Resource audio); |
| 133 }; | 132 }; |
| 134 | 133 |
| OLD | NEW |