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

Side by Side Diff: Source/modules/webaudio/AudioNode.h

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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 virtual const AtomicString& interfaceName() const override final; 201 virtual const AtomicString& interfaceName() const override final;
202 virtual ExecutionContext* executionContext() const override final; 202 virtual ExecutionContext* executionContext() const override final;
203 203
204 void updateChannelCountMode(); 204 void updateChannelCountMode();
205 205
206 DECLARE_VIRTUAL_TRACE(); 206 DECLARE_VIRTUAL_TRACE();
207 207
208 protected: 208 protected:
209 // Inputs and outputs must be created before the AudioNode is initialized. 209 // Inputs and outputs must be created before the AudioNode is initialized.
210 void addInput(); 210 void addInput();
211 void addOutput(AudioNodeOutput*); 211 void addOutput(unsigned numberOfChannels);
212 212
213 // Called by processIfNecessary() to cause all parts of the rendering graph connected to us to process. 213 // Called by processIfNecessary() to cause all parts of the rendering graph connected to us to process.
214 // Each rendering quantum, the audio data for each of the AudioNode's inputs will be available after this method is called. 214 // Each rendering quantum, the audio data for each of the AudioNode's inputs will be available after this method is called.
215 // Called from context's audio thread. 215 // Called from context's audio thread.
216 virtual void pullInputs(size_t framesToProcess); 216 virtual void pullInputs(size_t framesToProcess);
217 217
218 // Force all inputs to take any channel interpretation changes into account. 218 // Force all inputs to take any channel interpretation changes into account.
219 void updateChannelsForInputs(); 219 void updateChannelsForInputs();
220 220
221 private: 221 private:
(...skipping 24 matching lines...) Expand all
246 ChannelCountMode m_channelCountMode; 246 ChannelCountMode m_channelCountMode;
247 AudioBus::ChannelInterpretation m_channelInterpretation; 247 AudioBus::ChannelInterpretation m_channelInterpretation;
248 // The new channel count mode that will be used to set the actual mode in th e pre or post 248 // The new channel count mode that will be used to set the actual mode in th e pre or post
249 // rendering phase. 249 // rendering phase.
250 ChannelCountMode m_newChannelCountMode; 250 ChannelCountMode m_newChannelCountMode;
251 }; 251 };
252 252
253 } // namespace blink 253 } // namespace blink
254 254
255 #endif // AudioNode_h 255 #endif // AudioNode_h
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioBufferSourceNode.cpp ('k') | Source/modules/webaudio/AudioNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698