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

Side by Side Diff: Source/modules/webaudio/ConvolverNode.h

Issue 1214463003: Split "Online" and "Offline" AudioContext processing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Bring to ToT Created 5 years, 5 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 | Annotate | Revision Log
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // Normalize the impulse response or not. Must default to true. 68 // Normalize the impulse response or not. Must default to true.
69 bool m_normalize; 69 bool m_normalize;
70 70
71 // TODO(tkent): Use FRIEND_TEST macro provided by gtest_prod.h 71 // TODO(tkent): Use FRIEND_TEST macro provided by gtest_prod.h
72 friend class ConvolverNodeTest_ReverbLifetime_Test; 72 friend class ConvolverNodeTest_ReverbLifetime_Test;
73 }; 73 };
74 74
75 class MODULES_EXPORT ConvolverNode final : public AudioNode { 75 class MODULES_EXPORT ConvolverNode final : public AudioNode {
76 DEFINE_WRAPPERTYPEINFO(); 76 DEFINE_WRAPPERTYPEINFO();
77 public: 77 public:
78 static ConvolverNode* create(AudioContext&, float sampleRate); 78 static ConvolverNode* create(AbstractAudioContext&, float sampleRate);
79 79
80 AudioBuffer* buffer() const; 80 AudioBuffer* buffer() const;
81 void setBuffer(AudioBuffer*, ExceptionState&); 81 void setBuffer(AudioBuffer*, ExceptionState&);
82 bool normalize() const; 82 bool normalize() const;
83 void setNormalize(bool); 83 void setNormalize(bool);
84 84
85 private: 85 private:
86 ConvolverNode(AudioContext&, float sampleRate); 86 ConvolverNode(AbstractAudioContext&, float sampleRate);
87 ConvolverHandler& convolverHandler() const; 87 ConvolverHandler& convolverHandler() const;
88 88
89 // TODO(tkent): Use FRIEND_TEST macro provided by gtest_prod.h 89 // TODO(tkent): Use FRIEND_TEST macro provided by gtest_prod.h
90 friend class ConvolverNodeTest_ReverbLifetime_Test; 90 friend class ConvolverNodeTest_ReverbLifetime_Test;
91 }; 91 };
92 92
93 } // namespace blink 93 } // namespace blink
94 94
95 #endif // ConvolverNode_h 95 #endif // ConvolverNode_h
OLDNEW
« no previous file with comments | « Source/modules/webaudio/ChannelSplitterNode.cpp ('k') | Source/modules/webaudio/ConvolverNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698