| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // The main thread sets m_desiredNumberOfChannels which will later get picke
d up in the audio thread in updateNumberOfChannels(). | 124 // The main thread sets m_desiredNumberOfChannels which will later get picke
d up in the audio thread in updateNumberOfChannels(). |
| 125 unsigned m_numberOfChannels; | 125 unsigned m_numberOfChannels; |
| 126 unsigned m_desiredNumberOfChannels; | 126 unsigned m_desiredNumberOfChannels; |
| 127 | 127 |
| 128 // m_internalBus and m_inPlaceBus must only be changed in the audio thread w
ith the context's graph lock (or constructor). | 128 // m_internalBus and m_inPlaceBus must only be changed in the audio thread w
ith the context's graph lock (or constructor). |
| 129 RefPtr<AudioBus> m_internalBus; | 129 RefPtr<AudioBus> m_internalBus; |
| 130 RefPtr<AudioBus> m_inPlaceBus; | 130 RefPtr<AudioBus> m_inPlaceBus; |
| 131 // If m_isInPlace is true, use m_inPlaceBus as the valid AudioBus; If false,
use the default m_internalBus. | 131 // If m_isInPlace is true, use m_inPlaceBus as the valid AudioBus; If false,
use the default m_internalBus. |
| 132 bool m_isInPlace; | 132 bool m_isInPlace; |
| 133 | 133 |
| 134 HashSet<AudioNodeInput*> m_inputs; | 134 WillBePersistentHeapHashSet<RefPtrWillBeMember<AudioParam> > m_params; |
| 135 typedef HashSet<AudioNodeInput*>::iterator InputsIterator; | |
| 136 bool m_isEnabled; | 135 bool m_isEnabled; |
| 137 | 136 |
| 138 // For the purposes of rendering, keeps track of the number of inputs and Au
dioParams we're connected to. | 137 // For the purposes of rendering, keeps track of the number of inputs and Au
dioParams we're connected to. |
| 139 // These value should only be changed at the very start or end of the render
ing quantum. | 138 // These value should only be changed at the very start or end of the render
ing quantum. |
| 140 unsigned m_renderingFanOutCount; | 139 unsigned m_renderingFanOutCount; |
| 141 unsigned m_renderingParamFanOutCount; | 140 unsigned m_renderingParamFanOutCount; |
| 142 | 141 |
| 143 HashSet<RefPtr<AudioParam> > m_params; | 142 HashSet<RefPtr<AudioParam> > m_params; |
| 144 typedef HashSet<RefPtr<AudioParam> >::iterator ParamsIterator; | |
| 145 }; | 143 }; |
| 146 | 144 |
| 147 } // namespace WebCore | 145 } // namespace WebCore |
| 148 | 146 |
| 149 #endif // AudioNodeOutput_h | 147 #endif // AudioNodeOutput_h |
| OLD | NEW |