Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: ppapi/c/ppb_audio_config.h

Issue 6297018: Removed Doxygen groupings by ppb_, pp_, and ppp_. Added grouping by construct... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef PPAPI_C_PPB_AUDIO_CONFIG_H_ 5 #ifndef PPAPI_C_PPB_AUDIO_CONFIG_H_
6 #define PPAPI_C_PPB_AUDIO_CONFIG_H_ 6 #define PPAPI_C_PPB_AUDIO_CONFIG_H_
7 7
8 #include "ppapi/c/pp_bool.h" 8 #include "ppapi/c/pp_bool.h"
9 #include "ppapi/c/pp_instance.h" 9 #include "ppapi/c/pp_instance.h"
10 #include "ppapi/c/pp_macros.h" 10 #include "ppapi/c/pp_macros.h"
11 #include "ppapi/c/pp_resource.h" 11 #include "ppapi/c/pp_resource.h"
12 #include "ppapi/c/pp_stdint.h" 12 #include "ppapi/c/pp_stdint.h"
13 13
14 #define PPB_AUDIO_CONFIG_INTERFACE "PPB_AudioConfig;0.5" 14 #define PPB_AUDIO_CONFIG_INTERFACE "PPB_AudioConfig;0.5"
15 15
16 /**
17 *
18 * @addtogroup Enums
19 * @{
20 */
16 enum { 21 enum {
17 PP_AUDIOMINSAMPLEFRAMECOUNT = 64, 22 PP_AUDIOMINSAMPLEFRAMECOUNT = 64,
18 PP_AUDIOMAXSAMPLEFRAMECOUNT = 32768 23 PP_AUDIOMAXSAMPLEFRAMECOUNT = 32768
19 }; 24 };
25 /**
26 * @}
27 */
20 28
29 /**
30 *
31 * @addtogroup Enums
32 * @{
33 */
21 typedef enum { 34 typedef enum {
22 PP_AUDIOSAMPLERATE_NONE = 0, 35 PP_AUDIOSAMPLERATE_NONE = 0,
23 PP_AUDIOSAMPLERATE_44100 = 44100, 36 PP_AUDIOSAMPLERATE_44100 = 44100,
24 PP_AUDIOSAMPLERATE_48000 = 48000 37 PP_AUDIOSAMPLERATE_48000 = 48000
25 } PP_AudioSampleRate; 38 } PP_AudioSampleRate;
39 /**
40 * @}
41 */
42
26 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_AudioSampleRate, 4); 43 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_AudioSampleRate, 4);
27 44
28 /** 45 /**
46 * @addtogroup Interfaces
47 * @{
48 */
49
50 /**
29 * Audio configuration. This base configuration interface supports only stereo 51 * Audio configuration. This base configuration interface supports only stereo
30 * 16bit output. This class is not mutable, therefore it is okay to access 52 * 16bit output. This class is not mutable, therefore it is okay to access
31 * instances from different threads. 53 * instances from different threads.
32 */ 54 */
33 struct PPB_AudioConfig { 55 struct PPB_AudioConfig {
34 /** 56 /**
35 * Create a 16 bit stereo config with the given sample rate. We guarantee 57 * Create a 16 bit stereo config with the given sample rate. We guarantee
36 * that PP_AUDIOSAMPLERATE_44100 and PP_AUDIOSAMPLERATE_48000 sample rates 58 * that PP_AUDIOSAMPLERATE_44100 and PP_AUDIOSAMPLERATE_48000 sample rates
37 * are supported. The |sample_frame_count| should be the result of calling 59 * are supported. The |sample_frame_count| should be the result of calling
38 * RecommendSampleFrameCount. If the sample frame count or bit rate aren't 60 * RecommendSampleFrameCount. If the sample frame count or bit rate aren't
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 */ 108 */
87 PP_AudioSampleRate (*GetSampleRate)(PP_Resource config); 109 PP_AudioSampleRate (*GetSampleRate)(PP_Resource config);
88 110
89 /** 111 /**
90 * Returns the sample frame count for the given AudioConfig resource. If the 112 * Returns the sample frame count for the given AudioConfig resource. If the
91 * resource is invalid, this will return 0. See RecommendSampleFrameCount for 113 * resource is invalid, this will return 0. See RecommendSampleFrameCount for
92 * more on sample frame counts. 114 * more on sample frame counts.
93 */ 115 */
94 uint32_t (*GetSampleFrameCount)(PP_Resource config); 116 uint32_t (*GetSampleFrameCount)(PP_Resource config);
95 }; 117 };
118 /**
119 * @}
120 */
96 121
97 #endif /* PPAPI_C_PPB_AUDIO_CONFIG_H_ */ 122 #endif /* PPAPI_C_PPB_AUDIO_CONFIG_H_ */
98 123
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698