OLD | NEW |
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 PPB_AudioConfig interface for establishing an | 7 * This file defines the PPB_AudioConfig interface for establishing an |
8 * audio configuration resource within the browser. | 8 * audio configuration resource within the browser. |
9 */ | 9 */ |
10 | 10 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 * 0 if the resource is invalid. Refer to | 193 * 0 if the resource is invalid. Refer to |
194 * RecommendSampleFrameCount() for more on sample frame counts. | 194 * RecommendSampleFrameCount() for more on sample frame counts. |
195 */ | 195 */ |
196 uint32_t GetSampleFrameCount( | 196 uint32_t GetSampleFrameCount( |
197 [in] PP_Resource config); | 197 [in] PP_Resource config); |
198 | 198 |
199 /** | 199 /** |
200 * RecommendSampleRate() returns the native sample rate that the browser | 200 * RecommendSampleRate() returns the native sample rate that the browser |
201 * is using in the backend. Applications that use the recommended sample | 201 * is using in the backend. Applications that use the recommended sample |
202 * rate will have potentially better latency and fidelity. The return value | 202 * rate will have potentially better latency and fidelity. The return value |
203 * is indended for audio output devices. If the output sample rate cannot be | 203 * is intended for audio output devices. If the output sample rate cannot be |
204 * determined, this function can return PP_AUDIOSAMPLERATE_NONE. | 204 * determined, this function can return PP_AUDIOSAMPLERATE_NONE. |
205 * | 205 * |
206 * @param[in] instance | 206 * @param[in] instance |
207 * | 207 * |
208 * @return A <code>uint32_t</code> containing the recommended sample frame | 208 * @return A <code>uint32_t</code> containing the recommended sample frame |
209 * count if successful. | 209 * count if successful. |
210 */ | 210 */ |
211 [version=1.1] | 211 [version=1.1] |
212 PP_AudioSampleRate RecommendSampleRate( | 212 PP_AudioSampleRate RecommendSampleRate( |
213 [in] PP_Instance instance); | 213 [in] PP_Instance instance); |
214 | 214 |
215 }; | 215 }; |
216 | 216 |
OLD | NEW |