OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, 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 15 matching lines...) Expand all Loading... |
26 #define OscillatorNode_h | 26 #define OscillatorNode_h |
27 | 27 |
28 #include "modules/webaudio/AudioParam.h" | 28 #include "modules/webaudio/AudioParam.h" |
29 #include "modules/webaudio/AudioScheduledSourceNode.h" | 29 #include "modules/webaudio/AudioScheduledSourceNode.h" |
30 #include "platform/audio/AudioBus.h" | 30 #include "platform/audio/AudioBus.h" |
31 #include "wtf/OwnPtr.h" | 31 #include "wtf/OwnPtr.h" |
32 #include "wtf/PassRefPtr.h" | 32 #include "wtf/PassRefPtr.h" |
33 #include "wtf/RefPtr.h" | 33 #include "wtf/RefPtr.h" |
34 #include "wtf/Threading.h" | 34 #include "wtf/Threading.h" |
35 | 35 |
36 #if ENABLE(WEB_AUDIO) | |
37 | |
38 namespace blink { | 36 namespace blink { |
39 | 37 |
40 class AbstractAudioContext; | 38 class AbstractAudioContext; |
41 class ExceptionState; | 39 class ExceptionState; |
42 class PeriodicWave; | 40 class PeriodicWave; |
43 | 41 |
44 // OscillatorNode is an audio generator of periodic waveforms. | 42 // OscillatorNode is an audio generator of periodic waveforms. |
45 | 43 |
46 class OscillatorHandler final : public AudioScheduledSourceHandler { | 44 class OscillatorHandler final : public AudioScheduledSourceHandler { |
47 public: | 45 public: |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 private: | 112 private: |
115 OscillatorNode(AbstractAudioContext&, float sampleRate); | 113 OscillatorNode(AbstractAudioContext&, float sampleRate); |
116 OscillatorHandler& oscillatorHandler() const; | 114 OscillatorHandler& oscillatorHandler() const; |
117 | 115 |
118 Member<AudioParam> m_frequency; | 116 Member<AudioParam> m_frequency; |
119 Member<AudioParam> m_detune; | 117 Member<AudioParam> m_detune; |
120 }; | 118 }; |
121 | 119 |
122 } // namespace blink | 120 } // namespace blink |
123 | 121 |
124 #endif // ENABLE(WEB_AUDIO) | |
125 | |
126 #endif // OscillatorNode_h | 122 #endif // OscillatorNode_h |
OLD | NEW |