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

Side by Side Diff: ppapi/api/ppb_audio_buffer.idl

Issue 212023003: PPAPI: Bring PPB_MediaStream*Track to stable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 /* Copyright 2014 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 * Defines the <code>PPB_AudioBuffer</code> interface. 7 * Defines the <code>PPB_AudioBuffer</code> interface.
8 */ 8 */
9 9
10 [generate_thunk] 10 [generate_thunk]
11 11
12 label Chrome { 12 label Chrome {
13 [channel=dev] M34 = 0.1 13 [channel=dev] M34 = 0.1,
14 M35 = 0.1
14 }; 15 };
15 16
16 /** 17 /**
17 * PP_AudioBuffer_SampleRate is an enumeration of the different audio sample 18 * PP_AudioBuffer_SampleRate is an enumeration of the different audio sample
18 * rates. 19 * rates.
19 */ 20 */
20 enum PP_AudioBuffer_SampleRate { 21 enum PP_AudioBuffer_SampleRate {
21 PP_AUDIOBUFFER_SAMPLERATE_UNKNOWN = 0, 22 PP_AUDIOBUFFER_SAMPLERATE_UNKNOWN = 0,
22 PP_AUDIOBUFFER_SAMPLERATE_8000 = 8000, 23 PP_AUDIOBUFFER_SAMPLERATE_8000 = 8000,
23 PP_AUDIOBUFFER_SAMPLERATE_16000 = 16000, 24 PP_AUDIOBUFFER_SAMPLERATE_16000 = 16000,
24 PP_AUDIOBUFFER_SAMPLERATE_22050 = 22050, 25 PP_AUDIOBUFFER_SAMPLERATE_22050 = 22050,
25 PP_AUDIOBUFFER_SAMPLERATE_32000 = 32000, 26 PP_AUDIOBUFFER_SAMPLERATE_32000 = 32000,
26 PP_AUDIOBUFFER_SAMPLERATE_44100 = 44100, 27 PP_AUDIOBUFFER_SAMPLERATE_44100 = 44100,
27 PP_AUDIOBUFFER_SAMPLERATE_48000 = 48000, 28 PP_AUDIOBUFFER_SAMPLERATE_48000 = 48000,
28 PP_AUDIOBUFFER_SAMPLERATE_96000 = 96000, 29 PP_AUDIOBUFFER_SAMPLERATE_96000 = 96000,
29 PP_AUDIOBUFFER_SAMPLERATE_192000 = 192000 30 PP_AUDIOBUFFER_SAMPLERATE_192000 = 192000
30 }; 31 };
31 32
32 /** 33 /**
33 * PP_AudioBuffer_SampleSize is an enumeration of the different audio sample 34 * PP_AudioBuffer_SampleSize is an enumeration of the different audio sample
34 * sizes. 35 * sizes.
35 */ 36 */
36 enum PP_AudioBuffer_SampleSize { 37 enum PP_AudioBuffer_SampleSize {
37 PP_AUDIOBUFFER_SAMPLESIZE_UNKNOWN = 0, 38 PP_AUDIOBUFFER_SAMPLESIZE_UNKNOWN = 0,
38 PP_AUDIOBUFFER_SAMPLESIZE_16_BITS = 2 39 PP_AUDIOBUFFER_SAMPLESIZE_16_BITS = 2
39 }; 40 };
40 41
42 [version=0.1]
41 interface PPB_AudioBuffer { 43 interface PPB_AudioBuffer {
42 /** 44 /**
43 * Determines if a resource is an AudioBuffer resource. 45 * Determines if a resource is an AudioBuffer resource.
44 * 46 *
45 * @param[in] resource The <code>PP_Resource</code> to test. 47 * @param[in] resource The <code>PP_Resource</code> to test.
46 * 48 *
47 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given 49 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given
48 * resource is an AudioBuffer resource or <code>PP_FALSE</code> otherwise. 50 * resource is an AudioBuffer resource or <code>PP_FALSE</code> otherwise.
49 */ 51 */
50 PP_Bool IsAudioBuffer([in] PP_Resource resource); 52 PP_Bool IsAudioBuffer([in] PP_Resource resource);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 /** 131 /**
130 * Gets the size of the data buffer in bytes. 132 * Gets the size of the data buffer in bytes.
131 * 133 *
132 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio 134 * @param[in] buffer A <code>PP_Resource</code> corresponding to an audio
133 * buffer resource. 135 * buffer resource.
134 * 136 *
135 * @return The size of the data buffer in bytes. 137 * @return The size of the data buffer in bytes.
136 */ 138 */
137 uint32_t GetDataBufferSize([in] PP_Resource buffer); 139 uint32_t GetDataBufferSize([in] PP_Resource buffer);
138 }; 140 };
OLDNEW
« no previous file with comments | « native_client_sdk/src/examples/api/media_stream_video/index.html ('k') | ppapi/api/ppb_media_stream_audio_track.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698