| OLD | NEW | 
|    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  Loading... | 
|  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  Loading... | 
|  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 | 
| OLD | NEW |