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

Unified Diff: third_party/WebKit/Source/modules/webaudio/OscillatorNode.cpp

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/OscillatorNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/OscillatorNode.cpp b/third_party/WebKit/Source/modules/webaudio/OscillatorNode.cpp
index 7c053bbbdeba779d9c7d01755b0f915e708350dc..ffab45ddf0134e137d3b83b9d65e4705421baf1d 100644
--- a/third_party/WebKit/Source/modules/webaudio/OscillatorNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/OscillatorNode.cpp
@@ -126,8 +126,8 @@ bool OscillatorHandler::setType(unsigned type) {
break;
case CUSTOM:
default:
- // Return false for invalid types, including CUSTOM since setPeriodicWave() method must be
- // called explicitly.
+ // Return false for invalid types, including CUSTOM since
+ // setPeriodicWave() method must be called explicitly.
ASSERT_NOT_REACHED();
return false;
}
@@ -166,7 +166,8 @@ bool OscillatorHandler::calculateSampleAccuratePhaseIncrements(
m_frequency->calculateSampleAccurateValues(phaseIncrements,
framesToProcess);
} else {
- // Handle ordinary parameter smoothing/de-zippering if there are no scheduled changes.
+ // Handle ordinary parameter smoothing/de-zippering if there are no
+ // scheduled changes.
m_frequency->smooth();
float frequency = m_frequency->smoothedValue();
finalScale *= frequency;
@@ -193,7 +194,8 @@ bool OscillatorHandler::calculateSampleAccuratePhaseIncrements(
framesToProcess);
}
} else {
- // Handle ordinary parameter smoothing/de-zippering if there are no scheduled changes.
+ // Handle ordinary parameter smoothing/de-zippering if there are no
+ // scheduled changes.
m_detune->smooth();
float detune = m_detune->smoothedValue();
float detuneScale = powf(2, detune / 1200);
@@ -223,7 +225,8 @@ void OscillatorHandler::process(size_t framesToProcess) {
// The audio thread can't block on this lock, so we call tryLock() instead.
MutexTryLocker tryLocker(m_processLock);
if (!tryLocker.locked()) {
- // Too bad - the tryLock() failed. We must be in the middle of changing wave-tables.
+ // Too bad - the tryLock() failed. We must be in the middle of changing
+ // wave-tables.
outputBus->zero();
return;
}
@@ -318,7 +321,8 @@ void OscillatorHandler::process(size_t framesToProcess) {
*destP++ = sample;
- // Increment virtual read index and wrap virtualReadIndex into the range 0 -> periodicWaveSize.
+ // Increment virtual read index and wrap virtualReadIndex into the range
+ // 0 -> periodicWaveSize.
virtualReadIndex += incr;
virtualReadIndex -=
floor(virtualReadIndex * invPeriodicWaveSize) * periodicWaveSize;
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/OscillatorNode.h ('k') | third_party/WebKit/Source/modules/webaudio/PannerNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698