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 27 matching lines...) Expand all Loading... |
38 return adoptRef(new AudioProcessingEvent); | 38 return adoptRef(new AudioProcessingEvent); |
39 } | 39 } |
40 | 40 |
41 PassRefPtr<AudioProcessingEvent> AudioProcessingEvent::create(PassRefPtr<AudioBu
ffer> inputBuffer, PassRefPtr<AudioBuffer> outputBuffer) | 41 PassRefPtr<AudioProcessingEvent> AudioProcessingEvent::create(PassRefPtr<AudioBu
ffer> inputBuffer, PassRefPtr<AudioBuffer> outputBuffer) |
42 { | 42 { |
43 return adoptRef(new AudioProcessingEvent(inputBuffer, outputBuffer)); | 43 return adoptRef(new AudioProcessingEvent(inputBuffer, outputBuffer)); |
44 } | 44 } |
45 | 45 |
46 AudioProcessingEvent::AudioProcessingEvent() | 46 AudioProcessingEvent::AudioProcessingEvent() |
47 { | 47 { |
| 48 ScriptWrappable::init(this); |
48 } | 49 } |
49 | 50 |
50 AudioProcessingEvent::AudioProcessingEvent(PassRefPtr<AudioBuffer> inputBuffer,
PassRefPtr<AudioBuffer> outputBuffer) | 51 AudioProcessingEvent::AudioProcessingEvent(PassRefPtr<AudioBuffer> inputBuffer,
PassRefPtr<AudioBuffer> outputBuffer) |
51 : Event(eventNames().audioprocessEvent, true, false) | 52 : Event(eventNames().audioprocessEvent, true, false) |
52 , m_inputBuffer(inputBuffer) | 53 , m_inputBuffer(inputBuffer) |
53 , m_outputBuffer(outputBuffer) | 54 , m_outputBuffer(outputBuffer) |
54 { | 55 { |
| 56 ScriptWrappable::init(this); |
55 } | 57 } |
56 | 58 |
57 AudioProcessingEvent::~AudioProcessingEvent() | 59 AudioProcessingEvent::~AudioProcessingEvent() |
58 { | 60 { |
59 } | 61 } |
60 | 62 |
61 const AtomicString& AudioProcessingEvent::interfaceName() const | 63 const AtomicString& AudioProcessingEvent::interfaceName() const |
62 { | 64 { |
63 return eventNames().interfaceForAudioProcessingEvent; | 65 return eventNames().interfaceForAudioProcessingEvent; |
64 } | 66 } |
65 | 67 |
66 } // namespace WebCore | 68 } // namespace WebCore |
67 | 69 |
68 #endif // ENABLE(WEB_AUDIO) | 70 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |