| 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 24 matching lines...) Expand all Loading... |
| 35 return adoptRefWillBeNoop(new AudioProcessingEvent); | 35 return adoptRefWillBeNoop(new AudioProcessingEvent); |
| 36 } | 36 } |
| 37 | 37 |
| 38 PassRefPtrWillBeRawPtr<AudioProcessingEvent> AudioProcessingEvent::create(AudioB
uffer* inputBuffer, AudioBuffer* outputBuffer, double playbackTime) | 38 PassRefPtrWillBeRawPtr<AudioProcessingEvent> AudioProcessingEvent::create(AudioB
uffer* inputBuffer, AudioBuffer* outputBuffer, double playbackTime) |
| 39 { | 39 { |
| 40 return adoptRefWillBeNoop(new AudioProcessingEvent(inputBuffer, outputBuffer
, playbackTime)); | 40 return adoptRefWillBeNoop(new AudioProcessingEvent(inputBuffer, outputBuffer
, playbackTime)); |
| 41 } | 41 } |
| 42 | 42 |
| 43 AudioProcessingEvent::AudioProcessingEvent() | 43 AudioProcessingEvent::AudioProcessingEvent() |
| 44 { | 44 { |
| 45 ScriptWrappable::init(this); | |
| 46 } | 45 } |
| 47 | 46 |
| 48 AudioProcessingEvent::AudioProcessingEvent(AudioBuffer* inputBuffer, AudioBuffer
* outputBuffer, double playbackTime) | 47 AudioProcessingEvent::AudioProcessingEvent(AudioBuffer* inputBuffer, AudioBuffer
* outputBuffer, double playbackTime) |
| 49 : Event(EventTypeNames::audioprocess, true, false) | 48 : Event(EventTypeNames::audioprocess, true, false) |
| 50 , m_inputBuffer(inputBuffer) | 49 , m_inputBuffer(inputBuffer) |
| 51 , m_outputBuffer(outputBuffer) | 50 , m_outputBuffer(outputBuffer) |
| 52 , m_playbackTime(playbackTime) | 51 , m_playbackTime(playbackTime) |
| 53 { | 52 { |
| 54 ScriptWrappable::init(this); | |
| 55 } | 53 } |
| 56 | 54 |
| 57 AudioProcessingEvent::~AudioProcessingEvent() | 55 AudioProcessingEvent::~AudioProcessingEvent() |
| 58 { | 56 { |
| 59 } | 57 } |
| 60 | 58 |
| 61 const AtomicString& AudioProcessingEvent::interfaceName() const | 59 const AtomicString& AudioProcessingEvent::interfaceName() const |
| 62 { | 60 { |
| 63 return EventNames::AudioProcessingEvent; | 61 return EventNames::AudioProcessingEvent; |
| 64 } | 62 } |
| 65 | 63 |
| 66 void AudioProcessingEvent::trace(Visitor* visitor) | 64 void AudioProcessingEvent::trace(Visitor* visitor) |
| 67 { | 65 { |
| 68 visitor->trace(m_inputBuffer); | 66 visitor->trace(m_inputBuffer); |
| 69 visitor->trace(m_outputBuffer); | 67 visitor->trace(m_outputBuffer); |
| 70 Event::trace(visitor); | 68 Event::trace(visitor); |
| 71 } | 69 } |
| 72 | 70 |
| 73 } // namespace blink | 71 } // namespace blink |
| 74 | 72 |
| 75 #endif // ENABLE(WEB_AUDIO) | 73 #endif // ENABLE(WEB_AUDIO) |
| OLD | NEW |