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

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

Issue 2384073002: reflow comments in platform/audio (Closed)
Patch Set: Created 4 years, 2 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 21 matching lines...) Expand all
32 #include "platform/audio/ReverbConvolver.h" 32 #include "platform/audio/ReverbConvolver.h"
33 #include "wtf/Allocator.h" 33 #include "wtf/Allocator.h"
34 #include "wtf/Noncopyable.h" 34 #include "wtf/Noncopyable.h"
35 #include "wtf/Vector.h" 35 #include "wtf/Vector.h"
36 #include <memory> 36 #include <memory>
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class AudioBus; 40 class AudioBus;
41 41
42 // Multi-channel convolution reverb with channel matrixing - one or more ReverbC onvolver objects are used internally. 42 // Multi-channel convolution reverb with channel matrixing - one or more
43 // ReverbConvolver objects are used internally.
43 44
44 class PLATFORM_EXPORT Reverb { 45 class PLATFORM_EXPORT Reverb {
45 USING_FAST_MALLOC(Reverb); 46 USING_FAST_MALLOC(Reverb);
46 WTF_MAKE_NONCOPYABLE(Reverb); 47 WTF_MAKE_NONCOPYABLE(Reverb);
47 48
48 public: 49 public:
49 enum { MaxFrameSize = 256 }; 50 enum { MaxFrameSize = 256 };
50 51
51 // renderSliceSize is a rendering hint, so the FFTs can be optimized to not al l occur at the same time (very bad when rendering on a real-time thread). 52 // renderSliceSize is a rendering hint, so the FFTs can be optimized to not
53 // all occur at the same time (very bad when rendering on a real-time thread).
52 Reverb(AudioBus* impulseResponseBuffer, 54 Reverb(AudioBus* impulseResponseBuffer,
53 size_t renderSliceSize, 55 size_t renderSliceSize,
54 size_t maxFFTSize, 56 size_t maxFFTSize,
55 size_t numberOfChannels, 57 size_t numberOfChannels,
56 bool useBackgroundThreads, 58 bool useBackgroundThreads,
57 bool normalize); 59 bool normalize);
58 60
59 void process(const AudioBus* sourceBus, 61 void process(const AudioBus* sourceBus,
60 AudioBus* destinationBus, 62 AudioBus* destinationBus,
61 size_t framesToProcess); 63 size_t framesToProcess);
(...skipping 13 matching lines...) Expand all
75 77
76 Vector<std::unique_ptr<ReverbConvolver>> m_convolvers; 78 Vector<std::unique_ptr<ReverbConvolver>> m_convolvers;
77 79
78 // For "True" stereo processing 80 // For "True" stereo processing
79 RefPtr<AudioBus> m_tempBuffer; 81 RefPtr<AudioBus> m_tempBuffer;
80 }; 82 };
81 83
82 } // namespace blink 84 } // namespace blink
83 85
84 #endif // Reverb_h 86 #endif // Reverb_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698