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

Unified Diff: third_party/WebKit/Source/platform/audio/DynamicsCompressor.cpp

Issue 2384073002: reflow comments in platform/audio (Closed)
Patch Set: comments (heh!) 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/platform/audio/DynamicsCompressor.cpp
diff --git a/third_party/WebKit/Source/platform/audio/DynamicsCompressor.cpp b/third_party/WebKit/Source/platform/audio/DynamicsCompressor.cpp
index bf71496b3594742d4342e8c2cb3552540ff09e14..8122d88973c0b6f9e50c2b635a4c804deb25db19 100644
--- a/third_party/WebKit/Source/platform/audio/DynamicsCompressor.cpp
+++ b/third_party/WebKit/Source/platform/audio/DynamicsCompressor.cpp
@@ -91,8 +91,10 @@ float DynamicsCompressor::parameterValue(unsigned parameterID) {
void DynamicsCompressor::process(const AudioBus* sourceBus,
AudioBus* destinationBus,
unsigned framesToProcess) {
- // Though numberOfChannels is retrived from destinationBus, we still name it numberOfChannels instead of numberOfDestinationChannels.
- // It's because we internally match sourceChannels's size to destinationBus by channel up/down mix. Thus we need numberOfChannels
+ // Though numberOfChannels is retrived from destinationBus, we still name it
+ // numberOfChannels instead of numberOfDestinationChannels. It's because we
+ // internally match sourceChannels's size to destinationBus by channel
+ // up/down mix. Thus we need numberOfChannels
// to do the loop work for both m_sourceChannels and m_destinationChannels.
unsigned numberOfChannels = destinationBus->numberOfChannels();
@@ -112,7 +114,8 @@ void DynamicsCompressor::process(const AudioBus* sourceBus,
if (numberOfSourceChannels > 1)
m_sourceChannels[1] = sourceBus->channel(1)->data();
else
- // Simply duplicate mono channel input data to right channel for stereo processing.
+ // Simply duplicate mono channel input data to right channel for stereo
+ // processing.
m_sourceChannels[1] = m_sourceChannels[0];
break;
@@ -144,7 +147,8 @@ void DynamicsCompressor::process(const AudioBus* sourceBus,
float releaseTime = parameterValue(ParamRelease);
float preDelayTime = parameterValue(ParamPreDelay);
- // This is effectively a master volume on the compressed signal (pre-blending).
+ // This is effectively a master volume on the compressed signal
+ // (pre-blending).
float dbPostGain = parameterValue(ParamPostGain);
// Linear blending value from dry to completely processed (0 -> 1)

Powered by Google App Engine
This is Rietveld 408576698