| 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 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 28 matching lines...) Expand all Loading... |
| 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 stereo * 16bit output. | 45 * This interface only supports stereo * 16bit output. |
| 46 * | 46 * |
| 47 * Refer to the | 47 * Refer to the |
| 48 * <a href="/chrome/nativeclient/docs/audio.html">Pepper | 48 * <a href="/chrome/nativeclient/docs/audio.html">Pepper |
| 49 * Audio API Code Walkthrough</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_frame_count</code> should be the result of calling | 55 * <code>sample_frame_count</code> should be the result of calling |
| 56 * <code>RecommendSampleFrameCount</code>. If the sample frame count or bit | 56 * <code>RecommendSampleFrameCount</code>. If the sample frame count or bit |
| 57 * rate isn't supported, this function will fail and return a null resource. | 57 * rate isn't supported, this function will fail and return a null resource. |
| 58 * | 58 * |
| 59 * A single sample frame on a stereo device means one value for the left | 59 * A single sample frame on a stereo device means one value for the left |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 * @param[in] config A <code>PP_Resource</code> containing the audio config | 146 * @param[in] config A <code>PP_Resource</code> containing the audio config |
| 147 * resource. | 147 * resource. |
| 148 * @return A <code>uint32_t</code> containing sample frame count or | 148 * @return A <code>uint32_t</code> containing sample frame count or |
| 149 * 0 if the resource is invalid. See <code>RecommendSampleFrameCount</code> | 149 * 0 if the resource is invalid. See <code>RecommendSampleFrameCount</code> |
| 150 * for more on sample frame counts. | 150 * for more on sample frame counts. |
| 151 */ | 151 */ |
| 152 uint32_t GetSampleFrameCount( | 152 uint32_t GetSampleFrameCount( |
| 153 [in] PP_Resource config); | 153 [in] PP_Resource config); |
| 154 }; | 154 }; |
| 155 | 155 |
| OLD | NEW |