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

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

Issue 140783004: [PPAPI] Pepper MediaStream API audio track implementation and example. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 6 years, 11 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
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_AudioFrame</code> interface. 7 * Defines the <code>PPB_AudioFrame</code> interface.
8 */ 8 */
9 9
10 [generate_thunk] 10 [generate_thunk]
(...skipping 30 matching lines...) Expand all
41 * 41 *
42 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame 42 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame
43 * resource. 43 * resource.
44 * @param[in] timestamp A <code>PP_TimeDelta</code> containing the timestamp 44 * @param[in] timestamp A <code>PP_TimeDelta</code> containing the timestamp
45 * of the audio frame. Given in seconds since the start of the containing 45 * of the audio frame. Given in seconds since the start of the containing
46 * audio stream. 46 * audio stream.
47 */ 47 */
48 void SetTimestamp([in] PP_Resource frame, [in] PP_TimeDelta timestamp); 48 void SetTimestamp([in] PP_Resource frame, [in] PP_TimeDelta timestamp);
49 49
50 /** 50 /**
51 * Gets the sample rate of the audio frame.
52 *
53 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame
54 * resource.
55 *
56 * @return The sample rate of the audio frame.
57 */
58 [on_failure=PP_AUDIOSAMPLERATE_NONE]
59 PP_AudioSampleRate GetSampleRate([in] PP_Resource frame);
60
61 /**
51 * Gets the sample size of the audio frame. 62 * Gets the sample size of the audio frame.
52 * 63 *
53 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame 64 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame
54 * resource. 65 * resource.
55 * 66 *
56 * @return The sample size of the audio frame. 67 * @return The sample size of the audio frame.
57 */ 68 */
58 uint32_t GetSampleSize([in] PP_Resource frame); 69 uint32_t GetSampleSize([in] PP_Resource frame);
59 70
60 /** 71 /**
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 /** 103 /**
93 * Gets the size of the data buffer in bytes. 104 * Gets the size of the data buffer in bytes.
94 * 105 *
95 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame 106 * @param[in] frame A <code>PP_Resource</code> corresponding to an audio frame
96 * resource. 107 * resource.
97 * 108 *
98 * @return The size of the data buffer in bytes. 109 * @return The size of the data buffer in bytes.
99 */ 110 */
100 uint32_t GetDataBufferSize([in] PP_Resource frame); 111 uint32_t GetDataBufferSize([in] PP_Resource frame);
101 }; 112 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698