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 27 matching lines...) Expand all Loading... |
38 PP_AUDIOSAMPLERATE_48000 = 48000 | 38 PP_AUDIOSAMPLERATE_48000 = 48000 |
39 } ; | 39 } ; |
40 | 40 |
41 | 41 |
42 /** | 42 /** |
43 * The <code>PPB_AudioConfig</code> interface contains pointers to several | 43 * The <code>PPB_AudioConfig</code> interface contains pointers to several |
44 * functions for establishing your audio configuration within the browser. | 44 * functions for establishing your audio configuration within the browser. |
45 * This interface only supports 16-bit stereo output. | 45 * This interface only supports 16-bit stereo output. |
46 * | 46 * |
47 * Refer to the | 47 * Refer to the |
48 * <a href="/chrome/nativeclient/docs/audio.html">Pepper | 48 * <a href="/native-client/{{pepperversion}}/devguide/coding/audio">Pepper |
49 * Audio API</a> for information on using this interface. | 49 * Audio API</a> for information on using this interface. |
50 */ | 50 */ |
51 [macro="PPB_AUDIO_CONFIG_INTERFACE"] | 51 [macro="PPB_AUDIO_CONFIG_INTERFACE"] |
52 interface PPB_AudioConfig { | 52 interface PPB_AudioConfig { |
53 /** | 53 /** |
54 * CreateStereo16bit() creates a 16 bit audio configuration resource. The | 54 * CreateStereo16bit() creates a 16 bit audio configuration resource. The |
55 * <code>sample_rate</code> should be the result of calling | 55 * <code>sample_rate</code> should be the result of calling |
56 * <code>RecommendSampleRate</code> and <code>sample_frame_count</code> should | 56 * <code>RecommendSampleRate</code> and <code>sample_frame_count</code> should |
57 * be the result of calling <code>RecommendSampleFrameCount</code>. If the | 57 * be the result of calling <code>RecommendSampleFrameCount</code>. If the |
58 * sample frame count or bit rate isn't supported, this function will fail and | 58 * sample frame count or bit rate isn't supported, this function will fail and |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 * | 206 * |
207 * @return A <code>uint32_t</code> containing the recommended sample frame | 207 * @return A <code>uint32_t</code> containing the recommended sample frame |
208 * count if successful. | 208 * count if successful. |
209 */ | 209 */ |
210 [version=1.1] | 210 [version=1.1] |
211 PP_AudioSampleRate RecommendSampleRate( | 211 PP_AudioSampleRate RecommendSampleRate( |
212 [in] PP_Instance instance); | 212 [in] PP_Instance instance); |
213 | 213 |
214 }; | 214 }; |
215 | 215 |
OLD | NEW |