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

Unified Diff: Source/modules/webaudio/AudioBasicProcessorNode.cpp

Issue 20300002: Fix trailing whitespace in .cpp, .h, and .idl files (ex. Source/core) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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
« no previous file with comments | « Source/modules/webaudio/AudioBasicProcessorNode.h ('k') | Source/modules/webaudio/AudioBuffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioBasicProcessorNode.cpp
diff --git a/Source/modules/webaudio/AudioBasicProcessorNode.cpp b/Source/modules/webaudio/AudioBasicProcessorNode.cpp
index 8a6dec1e6658c390b51d4d119e63e1ce5d1cbc23..a11f46b01dcd69951e675afa8e65e1754dbe9eb4 100644
--- a/Source/modules/webaudio/AudioBasicProcessorNode.cpp
+++ b/Source/modules/webaudio/AudioBasicProcessorNode.cpp
@@ -70,7 +70,7 @@ void AudioBasicProcessorNode::uninitialize()
void AudioBasicProcessorNode::process(size_t framesToProcess)
{
AudioBus* destinationBus = output(0)->bus();
-
+
if (!isInitialized() || !processor() || processor()->numberOfChannels() != numberOfChannels())
destinationBus->zero();
else {
@@ -80,7 +80,7 @@ void AudioBasicProcessorNode::process(size_t framesToProcess)
if (!input(0)->isConnected())
sourceBus->zero();
- processor()->process(sourceBus, destinationBus, framesToProcess);
+ processor()->process(sourceBus, destinationBus, framesToProcess);
}
}
@@ -103,7 +103,7 @@ void AudioBasicProcessorNode::reset()
void AudioBasicProcessorNode::checkNumberOfChannelsForInput(AudioNodeInput* input)
{
ASSERT(context()->isAudioThread() && context()->isGraphOwner());
-
+
ASSERT(input == this->input(0));
if (input != this->input(0))
return;
@@ -113,12 +113,12 @@ void AudioBasicProcessorNode::checkNumberOfChannelsForInput(AudioNodeInput* inpu
return;
unsigned numberOfChannels = input->numberOfChannels();
-
+
if (isInitialized() && numberOfChannels != output(0)->numberOfChannels()) {
// We're already initialized but the channel count has changed.
uninitialize();
}
-
+
if (!isInitialized()) {
// This will propagate the channel count to any nodes connected further down the chain...
output(0)->setNumberOfChannels(numberOfChannels);
« no previous file with comments | « Source/modules/webaudio/AudioBasicProcessorNode.h ('k') | Source/modules/webaudio/AudioBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698