Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/GainNode.h

Issue 1557363002: Remove the WEB_AUDIO compile time flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 12 matching lines...) Expand all
23 */ 23 */
24 24
25 #ifndef GainNode_h 25 #ifndef GainNode_h
26 #define GainNode_h 26 #define GainNode_h
27 27
28 #include "modules/webaudio/AudioNode.h" 28 #include "modules/webaudio/AudioNode.h"
29 #include "modules/webaudio/AudioParam.h" 29 #include "modules/webaudio/AudioParam.h"
30 #include "wtf/PassRefPtr.h" 30 #include "wtf/PassRefPtr.h"
31 #include "wtf/Threading.h" 31 #include "wtf/Threading.h"
32 32
33 #if ENABLE(WEB_AUDIO)
34
35 namespace blink { 33 namespace blink {
36 34
37 class AbstractAudioContext; 35 class AbstractAudioContext;
38 36
39 // GainNode is an AudioNode with one input and one output which applies a gain ( volume) change to the audio signal. 37 // GainNode is an AudioNode with one input and one output which applies a gain ( volume) change to the audio signal.
40 // De-zippering (smoothing) is applied when the gain value is changed dynamicall y. 38 // De-zippering (smoothing) is applied when the gain value is changed dynamicall y.
41 39
42 class GainHandler final : public AudioHandler { 40 class GainHandler final : public AudioHandler {
43 public: 41 public:
44 static PassRefPtr<GainHandler> create(AudioNode&, float sampleRate, AudioPar amHandler& gain); 42 static PassRefPtr<GainHandler> create(AudioNode&, float sampleRate, AudioPar amHandler& gain);
(...skipping 22 matching lines...) Expand all
67 AudioParam* gain() const; 65 AudioParam* gain() const;
68 66
69 private: 67 private:
70 GainNode(AbstractAudioContext&, float sampleRate); 68 GainNode(AbstractAudioContext&, float sampleRate);
71 69
72 Member<AudioParam> m_gain; 70 Member<AudioParam> m_gain;
73 }; 71 };
74 72
75 } // namespace blink 73 } // namespace blink
76 74
77 #endif // ENABLE(WEB_AUDIO)
78
79 #endif // GainNode_h 75 #endif // GainNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698