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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioBus.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/AudioBus.cpp
diff --git a/third_party/WebKit/Source/platform/audio/AudioBus.cpp b/third_party/WebKit/Source/platform/audio/AudioBus.cpp
index 872bd1951b2c2b782e68e0539354c7f4cc5e57e5..a7704604903fea2a7a08b93c0b7301e580f5f0f7 100644
--- a/third_party/WebKit/Source/platform/audio/AudioBus.cpp
+++ b/third_party/WebKit/Source/platform/audio/AudioBus.cpp
@@ -74,8 +74,8 @@ void AudioBus::setChannelMemory(unsigned channelIndex,
size_t length) {
if (channelIndex < m_channels.size()) {
channel(channelIndex)->set(storage, length);
- m_length =
- length; // FIXME: verify that this length matches all the other channel lengths
+ // FIXME: verify that this length matches all the other channel lengths
+ m_length = length;
}
}
@@ -495,8 +495,9 @@ void AudioBus::copyWithGainFrom(const AudioBus& sourceBus,
destinations[i] = channel(i)->mutableData();
}
- // We don't want to suddenly change the gain from mixing one time slice to the next,
- // so we "de-zipper" by slowly changing the gain each sample-frame until we've achieved the target gain.
+ // We don't want to suddenly change the gain from mixing one time slice to
+ // the next, so we "de-zipper" by slowly changing the gain each sample-frame
+ // until we've achieved the target gain.
// Take master bus gain into account as well as the targetGain.
float totalDesiredGain = static_cast<float>(m_busGain * targetGain);
@@ -514,8 +515,10 @@ void AudioBus::copyWithGainFrom(const AudioBus& sourceBus,
const float epsilon = 0.001f;
float gainDiff = fabs(totalDesiredGain - gain);
- // Number of frames to de-zipper before we are close enough to the target gain.
- // FIXME: framesToDezipper could be smaller when target gain is close enough within this process loop.
+ // Number of frames to de-zipper before we are close enough to the target
+ // gain.
+ // FIXME: framesToDezipper could be smaller when target gain is close enough
+ // within this process loop.
unsigned framesToDezipper = (gainDiff < epsilon) ? 0 : framesToProcess;
if (framesToDezipper) {
@@ -527,8 +530,9 @@ void AudioBus::copyWithGainFrom(const AudioBus& sourceBus,
for (unsigned i = 0; i < framesToDezipper; ++i) {
gain += (totalDesiredGain - gain) * DezipperRate;
- // FIXME: If we are clever enough in calculating the framesToDezipper value, we can probably get
- // rid of this DenormalDisabler::flushDenormalFloatToZero() call.
+ // FIXME: If we are clever enough in calculating the framesToDezipper
+ // value, we can probably get rid of this
+ // DenormalDisabler::flushDenormalFloatToZero() call.
gain = DenormalDisabler::flushDenormalFloatToZero(gain);
*gainValues++ = gain;
}
« no previous file with comments | « third_party/WebKit/Source/platform/audio/AudioBus.h ('k') | third_party/WebKit/Source/platform/audio/AudioChannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698