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

Unified Diff: ppapi/cpp/audio.h

Issue 22320004: Add a new parameter |latency| to PPB_Audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 3 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/cpp/audio.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/audio.h
diff --git a/ppapi/cpp/audio.h b/ppapi/cpp/audio.h
index a07fcf58067d0470de2131213bc2f86710401a35..29a19f364f1fce5185180865b3b900fb05b12084 100644
--- a/ppapi/cpp/audio.h
+++ b/ppapi/cpp/audio.h
@@ -41,19 +41,30 @@ class Audio : public Resource {
///
/// @param[in] instance The instance with which this resource will be
/// associated.
- //
/// @param[in] config An <code>AudioConfig</code> containing the audio config
/// resource.
- //
/// @param[in] callback A <code>PPB_Audio_Callback</code> callback function
/// that the browser calls when it needs more samples to play.
- //
/// @param[in] user_data A pointer to user data used in the callback function.
Audio(const InstanceHandle& instance,
const AudioConfig& config,
PPB_Audio_Callback callback,
void* user_data);
+ /// A constructor that creates an Audio resource.
+ ///
+ /// @param[in] instance The instance with which this resource will be
+ /// associated.
+ /// @param[in] config An <code>AudioConfig</code> containing the audio config
+ /// resource.
+ /// @param[in] callback A <code>PPB_Audio_Callback_1_0</code> callback
+ /// function that the browser calls when it needs more samples to play.
+ /// @param[in] user_data A pointer to user data used in the callback function.
+ Audio(const InstanceHandle& instance,
+ const AudioConfig& config,
+ PPB_Audio_Callback_1_0 callback,
+ void* user_data);
+
/// Getter function for returning the internal <code>PPB_AudioConfig</code>
/// struct.
///
@@ -79,6 +90,7 @@ class Audio : public Resource {
private:
AudioConfig config_;
+ bool use_1_0_interface_;
};
} // namespace pp
« no previous file with comments | « ppapi/c/ppb_audio.h ('k') | ppapi/cpp/audio.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698