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

Side by Side Diff: third_party/WebKit/Source/platform/audio/Reverb.h

Issue 2732523003: Make ConvolverNode conform to spec (Closed)
Patch Set: Revert unneeded AudioNode.h change Created 3 years, 9 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 size_t latencyFrames() const; 67 size_t latencyFrames() const;
68 68
69 private: 69 private:
70 void initialize(AudioBus* impulseResponseBuffer, 70 void initialize(AudioBus* impulseResponseBuffer,
71 size_t renderSliceSize, 71 size_t renderSliceSize,
72 size_t maxFFTSize, 72 size_t maxFFTSize,
73 size_t numberOfChannels, 73 size_t numberOfChannels,
74 bool useBackgroundThreads); 74 bool useBackgroundThreads);
75 75
76 size_t m_impulseResponseLength; 76 size_t m_impulseResponseLength;
77 // The actual number of channels in the response. This can be less
78 // than the number of ReverbConvolver's.
79 unsigned m_numberOfChannels;
77 80
78 Vector<std::unique_ptr<ReverbConvolver>> m_convolvers; 81 Vector<std::unique_ptr<ReverbConvolver>> m_convolvers;
79 82
80 // For "True" stereo processing 83 // For "True" stereo processing
81 RefPtr<AudioBus> m_tempBuffer; 84 RefPtr<AudioBus> m_tempBuffer;
82 }; 85 };
83 86
84 } // namespace blink 87 } // namespace blink
85 88
86 #endif // Reverb_h 89 #endif // Reverb_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698