| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // updateRenderingState() is called in the audio thread at the start or end
of the render quantum to handle any recent changes to the graph state. | 89 // updateRenderingState() is called in the audio thread at the start or end
of the render quantum to handle any recent changes to the graph state. |
| 90 // It must be called with the context's graph lock. | 90 // It must be called with the context's graph lock. |
| 91 void updateRenderingState(); | 91 void updateRenderingState(); |
| 92 | 92 |
| 93 private: | 93 private: |
| 94 AudioNodeOutput(AudioNode*, unsigned numberOfChannels); | 94 AudioNodeOutput(AudioNode*, unsigned numberOfChannels); |
| 95 | 95 |
| 96 Member<AudioNode> m_node; | 96 Member<AudioNode> m_node; |
| 97 | 97 |
| 98 friend class AudioNodeInput; | 98 friend class AudioNodeInput; |
| 99 friend class AudioParam; | 99 friend class AudioParamHandler; |
| 100 | 100 |
| 101 // These are called from AudioNodeInput. | 101 // These are called from AudioNodeInput. |
| 102 // They must be called with the context's graph lock. | 102 // They must be called with the context's graph lock. |
| 103 void addInput(AudioNodeInput&); | 103 void addInput(AudioNodeInput&); |
| 104 void removeInput(AudioNodeInput&); | 104 void removeInput(AudioNodeInput&); |
| 105 void addParam(AudioParam&); | 105 void addParam(AudioParam&); |
| 106 void removeParam(AudioParam&); | 106 void removeParam(AudioParam&); |
| 107 | 107 |
| 108 // fanOutCount() is the number of AudioNodeInputs that we're connected to. | 108 // fanOutCount() is the number of AudioNodeInputs that we're connected to. |
| 109 // This method should not be called in audio thread rendering code, instead
renderingFanOutCount() should be used. | 109 // This method should not be called in audio thread rendering code, instead
renderingFanOutCount() should be used. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 // These value should only be changed at the very start or end of the render
ing quantum. | 157 // These value should only be changed at the very start or end of the render
ing quantum. |
| 158 unsigned m_renderingFanOutCount; | 158 unsigned m_renderingFanOutCount; |
| 159 unsigned m_renderingParamFanOutCount; | 159 unsigned m_renderingParamFanOutCount; |
| 160 | 160 |
| 161 HeapHashSet<Member<AudioParam>> m_params; | 161 HeapHashSet<Member<AudioParam>> m_params; |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 } // namespace blink | 164 } // namespace blink |
| 165 | 165 |
| 166 #endif // AudioNodeOutput_h | 166 #endif // AudioNodeOutput_h |
| OLD | NEW |