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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 } | 338 } |
339 | 339 |
340 void AudioNode::updateChannelsForInputs() | 340 void AudioNode::updateChannelsForInputs() |
341 { | 341 { |
342 for (unsigned i = 0; i < m_inputs.size(); ++i) | 342 for (unsigned i = 0; i < m_inputs.size(); ++i) |
343 input(i)->changedOutputs(); | 343 input(i)->changedOutputs(); |
344 } | 344 } |
345 | 345 |
346 const AtomicString& AudioNode::interfaceName() const | 346 const AtomicString& AudioNode::interfaceName() const |
347 { | 347 { |
348 return eventNames().interfaceForAudioNode; | 348 return EventTargetNames::AudioNode; |
349 } | 349 } |
350 | 350 |
351 ExecutionContext* AudioNode::executionContext() const | 351 ExecutionContext* AudioNode::executionContext() const |
352 { | 352 { |
353 return const_cast<AudioNode*>(this)->context()->executionContext(); | 353 return const_cast<AudioNode*>(this)->context()->executionContext(); |
354 } | 354 } |
355 | 355 |
356 void AudioNode::processIfNecessary(size_t framesToProcess) | 356 void AudioNode::processIfNecessary(size_t framesToProcess) |
357 { | 357 { |
358 ASSERT(context()->isAudioThread()); | 358 ASSERT(context()->isAudioThread()); |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 fprintf(stderr, "%d: %d\n", i, s_nodeCount[i]); | 579 fprintf(stderr, "%d: %d\n", i, s_nodeCount[i]); |
580 | 580 |
581 fprintf(stderr, "===========================\n\n\n"); | 581 fprintf(stderr, "===========================\n\n\n"); |
582 } | 582 } |
583 | 583 |
584 #endif // DEBUG_AUDIONODE_REFERENCES | 584 #endif // DEBUG_AUDIONODE_REFERENCES |
585 | 585 |
586 } // namespace WebCore | 586 } // namespace WebCore |
587 | 587 |
588 #endif // ENABLE(WEB_AUDIO) | 588 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |