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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioBasicProcessorHandler.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/AudioBasicProcessorHandler.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioBasicProcessorHandler.cpp b/third_party/WebKit/Source/modules/webaudio/AudioBasicProcessorHandler.cpp
index fa46515e92293a82cd3d03b6fa5d5fd61e245a6a..8a857efc9f348894a495cf7d4c05a89616abe81a 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioBasicProcessorHandler.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioBasicProcessorHandler.cpp
@@ -86,7 +86,8 @@ void AudioBasicProcessorHandler::process(size_t framesToProcess) {
} else {
AudioBus* sourceBus = input(0).bus();
- // FIXME: if we take "tail time" into account, then we can avoid calling processor()->process() once the tail dies down.
+ // FIXME: if we take "tail time" into account, then we can avoid calling
+ // processor()->process() once the tail dies down.
if (!input(0).isConnected())
sourceBus->zero();
@@ -96,13 +97,15 @@ void AudioBasicProcessorHandler::process(size_t framesToProcess) {
// Nice optimization in the very common case allowing for "in-place" processing
void AudioBasicProcessorHandler::pullInputs(size_t framesToProcess) {
- // Render input stream - suggest to the input to render directly into output bus for in-place processing in process() if possible.
+ // Render input stream - suggest to the input to render directly into output
+ // bus for in-place processing in process() if possible.
input(0).pull(output(0).bus(), framesToProcess);
}
// As soon as we know the channel count of our input, we can lazily initialize.
-// Sometimes this may be called more than once with different channel counts, in which case we must safely
-// uninitialize and then re-initialize with the new channel count.
+// Sometimes this may be called more than once with different channel counts, in
+// which case we must safely uninitialize and then re-initialize with the new
+// channel count.
void AudioBasicProcessorHandler::checkNumberOfChannelsForInput(
AudioNodeInput* input) {
DCHECK(context()->isAudioThread());
@@ -124,7 +127,8 @@ void AudioBasicProcessorHandler::checkNumberOfChannelsForInput(
}
if (!isInitialized()) {
- // This will propagate the channel count to any nodes connected further down the chain...
+ // This will propagate the channel count to any nodes connected further down
+ // the chain...
output(0).setNumberOfChannels(numberOfChannels);
// Re-initialize the processor with the new channel count.

Powered by Google App Engine
This is Rietveld 408576698