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

Side by Side Diff: Source/modules/webaudio/ConvolverNode.cpp

Issue 1023113002: Web Audio: Change the argument of AudioNode::addOutput(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // Very large FFTs will have worse phase errors. Given these constraints 32768 i s a good compromise. 43 // Very large FFTs will have worse phase errors. Given these constraints 32768 i s a good compromise.
44 const size_t MaxFFTSize = 32768; 44 const size_t MaxFFTSize = 32768;
45 45
46 namespace blink { 46 namespace blink {
47 47
48 ConvolverNode::ConvolverNode(AudioContext* context, float sampleRate) 48 ConvolverNode::ConvolverNode(AudioContext* context, float sampleRate)
49 : AudioNode(NodeTypeConvolver, context, sampleRate) 49 : AudioNode(NodeTypeConvolver, context, sampleRate)
50 , m_normalize(true) 50 , m_normalize(true)
51 { 51 {
52 addInput(); 52 addInput();
53 addOutput(AudioNodeOutput::create(this, 2)); 53 addOutput(2);
54 54
55 // Node-specific default mixing rules. 55 // Node-specific default mixing rules.
56 m_channelCount = 2; 56 m_channelCount = 2;
57 m_channelCountMode = ClampedMax; 57 m_channelCountMode = ClampedMax;
58 m_channelInterpretation = AudioBus::Speakers; 58 m_channelInterpretation = AudioBus::Speakers;
59 59
60 initialize(); 60 initialize();
61 } 61 }
62 62
63 ConvolverNode::~ConvolverNode() 63 ConvolverNode::~ConvolverNode()
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 DEFINE_TRACE(ConvolverNode) 184 DEFINE_TRACE(ConvolverNode)
185 { 185 {
186 visitor->trace(m_buffer); 186 visitor->trace(m_buffer);
187 AudioNode::trace(visitor); 187 AudioNode::trace(visitor);
188 } 188 }
189 189
190 } // namespace blink 190 } // namespace blink
191 191
192 #endif // ENABLE(WEB_AUDIO) 192 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/ChannelSplitterNode.cpp ('k') | Source/modules/webaudio/DynamicsCompressorNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698