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

Unified Diff: ppapi/c/ppb_audio_config.h

Issue 7399016: More trivial cleanupi of ppapi/c headers (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/c/ppb_audio.h ('k') | ppapi/c/ppb_core.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/ppb_audio_config.h
===================================================================
--- ppapi/c/ppb_audio_config.h (revision 92804)
+++ ppapi/c/ppb_audio_config.h (working copy)
@@ -2,6 +2,9 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+
+/* From ppb_audio_config.idl modified Sat Jul 16 16:50:26 2011. */
+
#ifndef PPAPI_C_PPB_AUDIO_CONFIG_H_
#define PPAPI_C_PPB_AUDIO_CONFIG_H_
@@ -11,22 +14,17 @@
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
-#define PPB_AUDIO_CONFIG_INTERFACE_0_5 "PPB_AudioConfig;0.5"
-#define PPB_AUDIO_CONFIG_INTERFACE_1_0 "PPB_AudioConfig;1.0"
-#define PPB_AUDIO_CONFIG_INTERFACE PPB_AUDIO_CONFIG_INTERFACE_1_0
-
/**
* @file
* This file defines the PPB_AudioConfig interface for establishing an
* audio configuration resource within the browser.
*/
+
/**
- *
* @addtogroup Enums
* @{
*/
-
/**
* This enumeration contains audio frame count constants.
* <code>PP_AUDIOMINSAMPLEFRAMECOUNT</code> is the minimum possible frame
@@ -37,17 +35,8 @@
PP_AUDIOMINSAMPLEFRAMECOUNT = 64,
PP_AUDIOMAXSAMPLEFRAMECOUNT = 32768
};
-/**
- * @}
- */
/**
- *
- * @addtogroup Enums
- * @{
- */
-
-/**
* PP_AudioSampleRate is an enumeration of the different audio sampling rates.
* <code>PP_AUDIOSAMPLERATE_44100</code> is the sample rate used on CDs and
* <code>PP_AUDIOSAMPLERATE_48000</code> is the sample rate used on DVDs and
@@ -67,7 +56,6 @@
* @addtogroup Interfaces
* @{
*/
-
/**
* The <code>PPB_AudioConfig</code> interface contains pointers to several
* functions for establishing your audio configuration within the browser.
@@ -77,6 +65,10 @@
* <a href="/chrome/nativeclient/docs/audio.html">Pepper
* Audio API Code Walkthrough</a> for information on using this interface.
*/
+#define PPB_AUDIO_CONFIG_INTERFACE_0_5 "PPB_AudioConfig;0.5"
+#define PPB_AUDIO_CONFIG_INTERFACE_1_0 "PPB_AudioConfig;1.0"
+#define PPB_AUDIO_CONFIG_INTERFACE PPB_AUDIO_CONFIG_INTERFACE_1_0
+
struct PPB_AudioConfig {
/**
* CreateStereo16bit() creates a 16 bit audio configuration resource. The
@@ -107,7 +99,6 @@
* <code>PP_AUDIOSAMPLERATE_48000</code>.
* @param[in] sample_frame_count A <code>uint32_t</code> frame count returned
* from the <code>RecommendSampleFrameCount</code> function.
- *
* @return A <code>PP_Resource</code> containing the
* <code>PPB_Audio_Config</code> if successful or a null resource if the
* sample frame count or bit rate are not supported.
@@ -115,7 +106,6 @@
PP_Resource (*CreateStereo16Bit)(PP_Instance instance,
PP_AudioSampleRate sample_rate,
uint32_t sample_frame_count);
-
/**
* RecommendSampleFrameCount() returns the supported sample frame count
* closest to the requested count. The sample frame count determines the
@@ -135,45 +125,39 @@
* <code>PP_AUDIOSAMPLERATE_48000.</code>
* @param[in] requested_sample_frame_count A <code>uint_32t</code> requested
* frame count.
- *
* @return A <code>uint32_t</code> containing the recommended sample frame
* count if successful.
*/
- uint32_t (*RecommendSampleFrameCount)(PP_AudioSampleRate sample_rate,
- uint32_t requested_sample_frame_count);
-
+ uint32_t (*RecommendSampleFrameCount)(
+ PP_AudioSampleRate sample_rate,
+ uint32_t requested_sample_frame_count);
/**
* IsAudioConfig() determines if the given resource is a
* <code>PPB_Audio_Config</code>.
*
* @param[in] resource A <code>PP_Resource</code> containing the audio config
* resource.
- *
* @return A <code>PP_BOOL</code> containing <code>PP_TRUE</code> if the given
* resource is an <code>AudioConfig</code> resource, otherwise
* <code>PP_FALSE</code>.
*/
PP_Bool (*IsAudioConfig)(PP_Resource resource);
-
/**
* GetSampleRate() returns the sample rate for the given
* <code>PPB_Audio_Config</code>.
*
* @param[in] config A <code>PP_Resource</code> containing the
* <code>PPB_Audio_Config</code>.
- *
* @return A <code>PP_AudioSampleRate</code> containing sample rate or
* <code>PP_AUDIOSAMPLERATE_NONE</code> if the resource is invalid.
*/
PP_AudioSampleRate (*GetSampleRate)(PP_Resource config);
-
/**
* GetSampleFrameCount() returns the sample frame count for the given
* <code>PPB_Audio_Config</code>.
*
* @param[in] config A <code>PP_Resource</code> containing the audio config
* resource.
- *
* @return A <code>uint32_t</code> containing sample frame count or
* 0 if the resource is invalid. See <code>RecommendSampleFrameCount</code>
* for more on sample frame counts.
« no previous file with comments | « ppapi/c/ppb_audio.h ('k') | ppapi/c/ppb_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698