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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.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 15 matching lines...) Expand all
26 #define ScriptProcessorNode_h 26 #define ScriptProcessorNode_h
27 27
28 #include "base/gtest_prod_util.h" 28 #include "base/gtest_prod_util.h"
29 #include "modules/webaudio/AudioNode.h" 29 #include "modules/webaudio/AudioNode.h"
30 #include "platform/audio/AudioBus.h" 30 #include "platform/audio/AudioBus.h"
31 #include "wtf/Forward.h" 31 #include "wtf/Forward.h"
32 #include "wtf/PassRefPtr.h" 32 #include "wtf/PassRefPtr.h"
33 #include "wtf/RefPtr.h" 33 #include "wtf/RefPtr.h"
34 #include "wtf/Vector.h" 34 #include "wtf/Vector.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 AudioBuffer; 39 class AudioBuffer;
42 40
43 // ScriptProcessorNode is an AudioNode which allows for arbitrary synthesis or p rocessing directly using JavaScript. 41 // ScriptProcessorNode is an AudioNode which allows for arbitrary synthesis or p rocessing directly using JavaScript.
44 // The API allows for a variable number of inputs and outputs, although it must have at least one input or output. 42 // The API allows for a variable number of inputs and outputs, although it must have at least one input or output.
45 // This basic implementation supports no more than one input and output. 43 // This basic implementation supports no more than one input and output.
46 // The "onaudioprocess" attribute is an event listener which will get called per iodically with an AudioProcessingEvent which has 44 // The "onaudioprocess" attribute is an event listener which will get called per iodically with an AudioProcessingEvent which has
47 // AudioBuffers for each input and output. 45 // AudioBuffers for each input and output.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 105
108 DEFINE_ATTRIBUTE_EVENT_LISTENER(audioprocess); 106 DEFINE_ATTRIBUTE_EVENT_LISTENER(audioprocess);
109 size_t bufferSize() const; 107 size_t bufferSize() const;
110 108
111 private: 109 private:
112 ScriptProcessorNode(AbstractAudioContext&, float sampleRate, size_t bufferSi ze, unsigned numberOfInputChannels, unsigned numberOfOutputChannels); 110 ScriptProcessorNode(AbstractAudioContext&, float sampleRate, size_t bufferSi ze, unsigned numberOfInputChannels, unsigned numberOfOutputChannels);
113 }; 111 };
114 112
115 } // namespace blink 113 } // namespace blink
116 114
117 #endif // ENABLE(WEB_AUDIO)
118
119 #endif // ScriptProcessorNode_h 115 #endif // ScriptProcessorNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698