| 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 unsigned m_desiredNumberOfChannels; | 129 unsigned m_desiredNumberOfChannels; |
| 130 | 130 |
| 131 // m_internalBus and m_inPlaceBus must only be changed in the audio thread w
ith the context's graph lock (or constructor). | 131 // m_internalBus and m_inPlaceBus must only be changed in the audio thread w
ith the context's graph lock (or constructor). |
| 132 RefPtr<AudioBus> m_internalBus; | 132 RefPtr<AudioBus> m_internalBus; |
| 133 RefPtr<AudioBus> m_inPlaceBus; | 133 RefPtr<AudioBus> m_inPlaceBus; |
| 134 // If m_isInPlace is true, use m_inPlaceBus as the valid AudioBus; If false,
use the default m_internalBus. | 134 // If m_isInPlace is true, use m_inPlaceBus as the valid AudioBus; If false,
use the default m_internalBus. |
| 135 bool m_isInPlace; | 135 bool m_isInPlace; |
| 136 | 136 |
| 137 HashSet<AudioNodeInput*> m_inputs; | 137 HashSet<AudioNodeInput*> m_inputs; |
| 138 typedef HashSet<AudioNodeInput*>::iterator InputsIterator; | 138 typedef HashSet<AudioNodeInput*>::iterator InputsIterator; |
| 139 // The content of m_inputNodes must be synchronized with m_inputs. | |
| 140 // This RefPtr is connection reference. We must call AudioNode:: | |
| 141 // makeConnection() after ref(), and call AudioNode::breakConnection() | |
| 142 // before deref(). | |
| 143 HashSet<RefPtr<AudioNode> > m_inputNodes; | |
| 144 bool m_isEnabled; | 139 bool m_isEnabled; |
| 145 | 140 |
| 146 // For the purposes of rendering, keeps track of the number of inputs and Au
dioParams we're connected to. | 141 // For the purposes of rendering, keeps track of the number of inputs and Au
dioParams we're connected to. |
| 147 // These value should only be changed at the very start or end of the render
ing quantum. | 142 // These value should only be changed at the very start or end of the render
ing quantum. |
| 148 unsigned m_renderingFanOutCount; | 143 unsigned m_renderingFanOutCount; |
| 149 unsigned m_renderingParamFanOutCount; | 144 unsigned m_renderingParamFanOutCount; |
| 150 | 145 |
| 151 WillBePersistentHeapHashSet<RefPtrWillBeMember<AudioParam> > m_params; | 146 WillBePersistentHeapHashSet<RefPtrWillBeMember<AudioParam> > m_params; |
| 152 }; | 147 }; |
| 153 | 148 |
| 154 } // namespace WebCore | 149 } // namespace WebCore |
| 155 | 150 |
| 156 #endif // AudioNodeOutput_h | 151 #endif // AudioNodeOutput_h |
| OLD | NEW |