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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h

Issue 2389253002: reflow comments in modules/{webaudio,vr} (Closed)
Patch Set: . Created 4 years, 2 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
Index: third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h b/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h
index 54b05c697b651fa336939ccf42bd49aa5448d440..2fcd6bd7372d437f6a1581987e3bc98c44e4c6c1 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h
+++ b/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.h
@@ -46,8 +46,8 @@ class AudioScheduledSourceHandler : public AudioHandler {
// PLAYING_STATE - Generating sound.
// FINISHED_STATE - Finished generating sound.
//
- // The state can only transition to the next state, except for the FINISHED_STATE which can
- // never be changed.
+ // The state can only transition to the next state, except for the
+ // FINISHED_STATE which can never be changed.
enum PlaybackState {
// These must be defined with the same names and values as in the .idl file.
UNSCHEDULED_STATE = 0,
@@ -80,18 +80,21 @@ class AudioScheduledSourceHandler : public AudioHandler {
protected:
// Get frame information for the current time quantum.
// We handle the transition into PLAYING_STATE and FINISHED_STATE here,
- // zeroing out portions of the outputBus which are outside the range of startFrame and endFrame.
+ // zeroing out portions of the outputBus which are outside the range of
+ // startFrame and endFrame.
//
// Each frame time is relative to the context's currentSampleFrame().
- // quantumFrameOffset : Offset frame in this time quantum to start rendering.
- // nonSilentFramesToProcess : Number of frames rendering non-silence (will be <= quantumFrameSize).
+ // quantumFrameOffset : Offset frame in this time quantum to start
+ // rendering.
+ // nonSilentFramesToProcess : Number of frames rendering non-silence (will be
+ // <= quantumFrameSize).
void updateSchedulingInfo(size_t quantumFrameSize,
AudioBus* outputBus,
size_t& quantumFrameOffset,
size_t& nonSilentFramesToProcess);
- // Called when we have no more sound to play or the stop() time has been reached. No onEnded
- // event is called.
+ // Called when we have no more sound to play or the stop() time has been
+ // reached. No onEnded event is called.
virtual void finishWithoutOnEnded();
// Like finishWithoutOnEnded(), but an onEnded (if specified) is called.
@@ -99,23 +102,25 @@ class AudioScheduledSourceHandler : public AudioHandler {
void notifyEnded();
- // This synchronizes with process() and any other method that needs to be synchronized like
- // setBuffer for AudioBufferSource.
+ // This synchronizes with process() and any other method that needs to be
+ // synchronized like setBuffer for AudioBufferSource.
mutable Mutex m_processLock;
- // m_startTime is the time to start playing based on the context's timeline (0 or a time less than the context's current time means "now").
+ // m_startTime is the time to start playing based on the context's timeline (0
+ // or a time less than the context's current time means "now").
double m_startTime; // in seconds
- // m_endTime is the time to stop playing based on the context's timeline (0 or a time less than the context's current time means "now").
- // If it hasn't been set explicitly, then the sound will not stop playing (if looping) or will stop when the end of the AudioBuffer
- // has been reached.
+ // m_endTime is the time to stop playing based on the context's timeline (0 or
+ // a time less than the context's current time means "now"). If it hasn't
+ // been set explicitly, then the sound will not stop playing (if looping) or
+ // will stop when the end of the AudioBuffer has been reached.
double m_endTime; // in seconds
static const double UnknownTime;
private:
- // This is accessed by both the main thread and audio thread. Use the setter and getter to
- // protect the access to this!
+ // This is accessed by both the main thread and audio thread. Use the setter
+ // and getter to protect the access to this.
int m_playbackState;
};

Powered by Google App Engine
This is Rietveld 408576698