| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 #ifndef WaveShaperNode_h | 25 #ifndef WaveShaperNode_h |
| 26 #define WaveShaperNode_h | 26 #define WaveShaperNode_h |
| 27 | 27 |
| 28 #include "core/dom/DOMTypedArray.h" | 28 #include "core/dom/DOMTypedArray.h" |
| 29 #include "modules/webaudio/AudioNode.h" | 29 #include "modules/webaudio/AudioNode.h" |
| 30 #include "modules/webaudio/WaveShaperProcessor.h" | 30 #include "modules/webaudio/WaveShaperProcessor.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class AbstractAudioContext; | 34 class BaseAudioContext; |
| 35 class ExceptionState; | 35 class ExceptionState; |
| 36 | 36 |
| 37 class WaveShaperNode final : public AudioNode { | 37 class WaveShaperNode final : public AudioNode { |
| 38 DEFINE_WRAPPERTYPEINFO(); | 38 DEFINE_WRAPPERTYPEINFO(); |
| 39 public: | 39 public: |
| 40 static WaveShaperNode* create(AbstractAudioContext&, ExceptionState&); | 40 static WaveShaperNode* create(BaseAudioContext&, ExceptionState&); |
| 41 | 41 |
| 42 // setCurve() is called on the main thread. | 42 // setCurve() is called on the main thread. |
| 43 void setCurve(DOMFloat32Array*, ExceptionState&); | 43 void setCurve(DOMFloat32Array*, ExceptionState&); |
| 44 DOMFloat32Array* curve(); | 44 DOMFloat32Array* curve(); |
| 45 | 45 |
| 46 void setOversample(const String&); | 46 void setOversample(const String&); |
| 47 String oversample() const; | 47 String oversample() const; |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 explicit WaveShaperNode(AbstractAudioContext&); | 50 explicit WaveShaperNode(BaseAudioContext&); |
| 51 | 51 |
| 52 WaveShaperProcessor* getWaveShaperProcessor() const; | 52 WaveShaperProcessor* getWaveShaperProcessor() const; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace blink | 55 } // namespace blink |
| 56 | 56 |
| 57 #endif // WaveShaperNode_h | 57 #endif // WaveShaperNode_h |
| OLD | NEW |