| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // The main thread sets m_desiredNumberOfChannels which will later get picke
d up in the audio thread in updateNumberOfChannels(). | 127 // The main thread sets m_desiredNumberOfChannels which will later get picke
d up in the audio thread in updateNumberOfChannels(). |
| 128 unsigned m_numberOfChannels; | 128 unsigned m_numberOfChannels; |
| 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 // This RefPtr<AudioNode> is connection reference. We must call AudioNode:: |
| 138 typedef HashSet<AudioNodeInput*>::iterator InputsIterator; | 138 // makeConnection() after ref(), and call AudioNode::breakConnection() |
| 139 // before deref(). |
| 140 HashMap<AudioNodeInput*, RefPtr<AudioNode> > m_inputs; |
| 141 typedef HashMap<AudioNodeInput*, RefPtr<AudioNode> >::iterator InputsIterato
r; |
| 139 bool m_isEnabled; | 142 bool m_isEnabled; |
| 140 | 143 |
| 141 // For the purposes of rendering, keeps track of the number of inputs and Au
dioParams we're connected to. | 144 // For the purposes of rendering, keeps track of the number of inputs and Au
dioParams we're connected to. |
| 142 // These value should only be changed at the very start or end of the render
ing quantum. | 145 // These value should only be changed at the very start or end of the render
ing quantum. |
| 143 unsigned m_renderingFanOutCount; | 146 unsigned m_renderingFanOutCount; |
| 144 unsigned m_renderingParamFanOutCount; | 147 unsigned m_renderingParamFanOutCount; |
| 145 | 148 |
| 146 WillBePersistentHeapHashSet<RefPtrWillBeMember<AudioParam> > m_params; | 149 WillBePersistentHeapHashSet<RefPtrWillBeMember<AudioParam> > m_params; |
| 147 }; | 150 }; |
| 148 | 151 |
| 149 } // namespace WebCore | 152 } // namespace WebCore |
| 150 | 153 |
| 151 #endif // AudioNodeOutput_h | 154 #endif // AudioNodeOutput_h |
| OLD | NEW |