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

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

Issue 7701004: Fixed spelling errors and changed all references to PP_Resource to be the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/ppp_instance.h ('k') | ppapi/cpp/core.h » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_AUDIO_H_ 5 #ifndef PPAPI_CPP_AUDIO_H_
6 #define PPAPI_CPP_AUDIO_H_ 6 #define PPAPI_CPP_AUDIO_H_
7 7
8 #include "ppapi/c/pp_stdint.h" 8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/c/ppb_audio.h" 9 #include "ppapi/c/ppb_audio.h"
10 #include "ppapi/cpp/audio_config.h" 10 #include "ppapi/cpp/audio_config.h"
(...skipping 20 matching lines...) Expand all
31 /// address and given user data whenever the buffer needs to be filled. 31 /// address and given user data whenever the buffer needs to be filled.
32 /// From within the callback, you should not call <code>PPB_Audio</code> 32 /// From within the callback, you should not call <code>PPB_Audio</code>
33 /// functions. The callback will be called on a different thread than the one 33 /// functions. The callback will be called on a different thread than the one
34 /// which created the interface. For performance-critical applications (such 34 /// which created the interface. For performance-critical applications (such
35 /// as low-latency audio), the callback should avoid blocking or calling 35 /// as low-latency audio), the callback should avoid blocking or calling
36 /// functions that can obtain locks, such as malloc. The layout and the size 36 /// functions that can obtain locks, such as malloc. The layout and the size
37 /// of the buffer passed to the audio callback will be determined by 37 /// of the buffer passed to the audio callback will be determined by
38 /// the device configuration and is specified in the <code>AudioConfig</code> 38 /// the device configuration and is specified in the <code>AudioConfig</code>
39 /// documentation. 39 /// documentation.
40 /// 40 ///
41 /// @param[in] instance A pointer to an <code>Instance</code> indentifying one 41 /// @param[in] instance A pointer to an <code>Instance</code> identifying one
42 /// instance of a module. 42 /// instance of a module.
43 /// @param[in] config An <code>AudioConfig</code> containing the audio config 43 /// @param[in] config An <code>AudioConfig</code> containing the audio config
44 /// resource. 44 /// resource.
45 /// @param[in] callback A <code>PPB_Audio_Callback</code> callback function 45 /// @param[in] callback A <code>PPB_Audio_Callback</code> callback function
46 /// that the browser calls when it needs more samples to play. 46 /// that the browser calls when it needs more samples to play.
47 /// @param[in] user_data A pointer to user data used in the callback function. 47 /// @param[in] user_data A pointer to user data used in the callback function.
48 Audio(Instance* instance, 48 Audio(Instance* instance,
49 const AudioConfig& config, 49 const AudioConfig& config,
50 PPB_Audio_Callback callback, 50 PPB_Audio_Callback callback,
51 void* user_data); 51 void* user_data);
(...skipping 22 matching lines...) Expand all
74 bool StopPlayback(); 74 bool StopPlayback();
75 75
76 private: 76 private:
77 AudioConfig config_; 77 AudioConfig config_;
78 }; 78 };
79 79
80 } // namespace pp 80 } // namespace pp
81 81
82 #endif // PPAPI_CPP_AUDIO_H_ 82 #endif // PPAPI_CPP_AUDIO_H_
83 83
OLDNEW
« no previous file with comments | « ppapi/c/ppp_instance.h ('k') | ppapi/cpp/core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698