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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 #include "bindings/core/v8/ScriptWrappable.h" | 32 #include "bindings/core/v8/ScriptWrappable.h" |
33 #include "core/dom/DOMTypedArray.h" | 33 #include "core/dom/DOMTypedArray.h" |
34 #include "modules/webaudio/AbstractAudioContext.h" | 34 #include "modules/webaudio/AbstractAudioContext.h" |
35 #include "modules/webaudio/AudioParamTimeline.h" | 35 #include "modules/webaudio/AudioParamTimeline.h" |
36 #include "modules/webaudio/AudioSummingJunction.h" | 36 #include "modules/webaudio/AudioSummingJunction.h" |
37 #include "wtf/PassRefPtr.h" | 37 #include "wtf/PassRefPtr.h" |
38 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
39 #include <sys/types.h> | 39 #include <sys/types.h> |
40 | 40 |
41 #if ENABLE(WEB_AUDIO) | |
42 | |
43 namespace blink { | 41 namespace blink { |
44 | 42 |
45 class AudioNodeOutput; | 43 class AudioNodeOutput; |
46 | 44 |
47 // AudioParamHandler is an actual implementation of web-exposed AudioParam | 45 // AudioParamHandler is an actual implementation of web-exposed AudioParam |
48 // interface. Each of AudioParam object creates and owns an AudioParamHandler, | 46 // interface. Each of AudioParam object creates and owns an AudioParamHandler, |
49 // and it is responsible for all of AudioParam tasks. An AudioParamHandler | 47 // and it is responsible for all of AudioParam tasks. An AudioParamHandler |
50 // object is owned by the originator AudioParam object, and some audio | 48 // object is owned by the originator AudioParam object, and some audio |
51 // processing classes have additional references. An AudioParamHandler can | 49 // processing classes have additional references. An AudioParamHandler can |
52 // outlive the owner AudioParam, and it never dies before the owner AudioParam | 50 // outlive the owner AudioParam, and it never dies before the owner AudioParam |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 151 |
154 private: | 152 private: |
155 AudioParam(AbstractAudioContext&, double defaultValue); | 153 AudioParam(AbstractAudioContext&, double defaultValue); |
156 | 154 |
157 RefPtr<AudioParamHandler> m_handler; | 155 RefPtr<AudioParamHandler> m_handler; |
158 Member<AbstractAudioContext> m_context; | 156 Member<AbstractAudioContext> m_context; |
159 }; | 157 }; |
160 | 158 |
161 } // namespace blink | 159 } // namespace blink |
162 | 160 |
163 #endif // ENABLE(WEB_AUDIO) | |
164 | |
165 #endif // AudioParam_h | 161 #endif // AudioParam_h |
OLD | NEW |