| 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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 // Force all inputs to take any channel interpretation changes into account. | 207 // Force all inputs to take any channel interpretation changes into account. |
| 208 void updateChannelsForInputs(); | 208 void updateChannelsForInputs(); |
| 209 | 209 |
| 210 private: | 210 private: |
| 211 void setNodeType(NodeType); | 211 void setNodeType(NodeType); |
| 212 | 212 |
| 213 volatile bool m_isInitialized; | 213 volatile bool m_isInitialized; |
| 214 NodeType m_nodeType; | 214 NodeType m_nodeType; |
| 215 Member<AudioContext> m_context; | 215 Member<AudioContext> m_context; |
| 216 float m_sampleRate; | 216 float m_sampleRate; |
| 217 HeapVector<Member<AudioNodeInput> > m_inputs; | 217 HeapVector<Member<AudioNodeInput>> m_inputs; |
| 218 HeapVector<Member<AudioNodeOutput> > m_outputs; | 218 HeapVector<Member<AudioNodeOutput>> m_outputs; |
| 219 | 219 |
| 220 double m_lastProcessingTime; | 220 double m_lastProcessingTime; |
| 221 double m_lastNonSilentTime; | 221 double m_lastNonSilentTime; |
| 222 | 222 |
| 223 volatile int m_connectionRefCount; | 223 volatile int m_connectionRefCount; |
| 224 | 224 |
| 225 bool m_isDisabled; | 225 bool m_isDisabled; |
| 226 | 226 |
| 227 #if DEBUG_AUDIONODE_REFERENCES | 227 #if DEBUG_AUDIONODE_REFERENCES |
| 228 static bool s_isNodeCountInitialized; | 228 static bool s_isNodeCountInitialized; |
| 229 static int s_nodeCount[NodeTypeEnd]; | 229 static int s_nodeCount[NodeTypeEnd]; |
| 230 #endif | 230 #endif |
| 231 static unsigned s_instanceCount; | 231 static unsigned s_instanceCount; |
| 232 | 232 |
| 233 protected: | 233 protected: |
| 234 unsigned m_channelCount; | 234 unsigned m_channelCount; |
| 235 ChannelCountMode m_channelCountMode; | 235 ChannelCountMode m_channelCountMode; |
| 236 AudioBus::ChannelInterpretation m_channelInterpretation; | 236 AudioBus::ChannelInterpretation m_channelInterpretation; |
| 237 // The new channel count mode that will be used to set the actual mode in th
e pre or post | 237 // The new channel count mode that will be used to set the actual mode in th
e pre or post |
| 238 // rendering phase. | 238 // rendering phase. |
| 239 ChannelCountMode m_newChannelCountMode; | 239 ChannelCountMode m_newChannelCountMode; |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 } // namespace blink | 242 } // namespace blink |
| 243 | 243 |
| 244 #endif // AudioNode_h | 244 #endif // AudioNode_h |
| OLD | NEW |