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

Side by Side Diff: ppapi/cpp/media_stream_audio_track.h

Issue 290993005: Support configuring number of audio buffers in MediaStream Pepper API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix uninitialized variable Created 6 years, 6 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
« no previous file with comments | « ppapi/c/ppb_media_stream_audio_track.h ('k') | ppapi/ppapi_shared.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef PPAPI_CPP_MEDIA_STREAM_AUDIO_TRACK_H_ 5 #ifndef PPAPI_CPP_MEDIA_STREAM_AUDIO_TRACK_H_
6 #define PPAPI_CPP_MEDIA_STREAM_AUDIO_TRACK_H_ 6 #define PPAPI_CPP_MEDIA_STREAM_AUDIO_TRACK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ppapi/c/ppb_media_stream_audio_track.h" 10 #include "ppapi/c/ppb_media_stream_audio_track.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 ~MediaStreamAudioTrack(); 50 ~MediaStreamAudioTrack();
51 51
52 /// Configures underlying buffer buffers for incoming audio samples. 52 /// Configures underlying buffer buffers for incoming audio samples.
53 /// If the application doesn't want to drop samples, then the 53 /// If the application doesn't want to drop samples, then the
54 /// <code>PP_MEDIASTREAMAUDIOTRACK_ATTRIB_BUFFERS</code> should be 54 /// <code>PP_MEDIASTREAMAUDIOTRACK_ATTRIB_BUFFERS</code> should be
55 /// chosen such that inter-buffer processing time variability won't overrun 55 /// chosen such that inter-buffer processing time variability won't overrun
56 /// all input buffers. If all buffers are filled, then samples will be 56 /// all input buffers. If all buffers are filled, then samples will be
57 /// dropped. The application can detect this by examining the timestamp on 57 /// dropped. The application can detect this by examining the timestamp on
58 /// returned buffers. If <code>Configure()</code> is not called, default 58 /// returned buffers. If <code>Configure()</code> is not called, default
59 /// settings will be used. 59 /// settings will be used. Calls to Configure while the plugin holds
60 /// buffers will fail.
60 /// Example usage from plugin code: 61 /// Example usage from plugin code:
61 /// @code 62 /// @code
62 /// int32_t attribs[] = { 63 /// int32_t attribs[] = {
63 /// PP_MEDIASTREAMAUDIOTRACK_ATTRIB_BUFFERS, 4, 64 /// PP_MEDIASTREAMAUDIOTRACK_ATTRIB_BUFFERS, 4,
64 /// PP_MEDIASTREAMAUDIOTRACK_ATTRIB_DURATION, 10, 65 /// PP_MEDIASTREAMAUDIOTRACK_ATTRIB_DURATION, 10,
65 /// PP_MEDIASTREAMAUDIOTRACK_ATTRIB_NONE}; 66 /// PP_MEDIASTREAMAUDIOTRACK_ATTRIB_NONE};
66 /// track.Configure(attribs, callback); 67 /// track.Configure(attribs, callback);
67 /// @endcode 68 /// @endcode
68 /// 69 ///
69 /// @param[in] attrib_list A list of attribute name-value pairs in which each 70 /// @param[in] attrib_list A list of attribute name-value pairs in which each
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 /// 135 ///
135 /// @param[in] resource A <code>Resource</code> to test. 136 /// @param[in] resource A <code>Resource</code> to test.
136 /// 137 ///
137 /// @return True if <code>resource</code> is a MediaStream audio track. 138 /// @return True if <code>resource</code> is a MediaStream audio track.
138 static bool IsMediaStreamAudioTrack(const Resource& resource); 139 static bool IsMediaStreamAudioTrack(const Resource& resource);
139 }; 140 };
140 141
141 } // namespace pp 142 } // namespace pp
142 143
143 #endif // PPAPI_CPP_MEDIA_STREAM_AUDIO_TRACK_H_ 144 #endif // PPAPI_CPP_MEDIA_STREAM_AUDIO_TRACK_H_
OLDNEW
« no previous file with comments | « ppapi/c/ppb_media_stream_audio_track.h ('k') | ppapi/ppapi_shared.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698