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: Source/platform/audio/ReverbConvolver.h

Issue 858663002: Fix template angle bracket syntax in platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 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
« no previous file with comments | « Source/platform/audio/Reverb.h ('k') | Source/platform/blob/BlobRegistry.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 void process(const AudioChannel* sourceChannel, AudioChannel* destinationCha nnel, size_t framesToProcess); 57 void process(const AudioChannel* sourceChannel, AudioChannel* destinationCha nnel, size_t framesToProcess);
58 void reset(); 58 void reset();
59 59
60 ReverbInputBuffer* inputBuffer() { return &m_inputBuffer; } 60 ReverbInputBuffer* inputBuffer() { return &m_inputBuffer; }
61 61
62 size_t latencyFrames() const; 62 size_t latencyFrames() const;
63 private: 63 private:
64 void processInBackground(); 64 void processInBackground();
65 65
66 Vector<OwnPtr<ReverbConvolverStage> > m_stages; 66 Vector<OwnPtr<ReverbConvolverStage>> m_stages;
67 Vector<OwnPtr<ReverbConvolverStage> > m_backgroundStages; 67 Vector<OwnPtr<ReverbConvolverStage>> m_backgroundStages;
68 size_t m_impulseResponseLength; 68 size_t m_impulseResponseLength;
69 69
70 ReverbAccumulationBuffer m_accumulationBuffer; 70 ReverbAccumulationBuffer m_accumulationBuffer;
71 71
72 // One or more background threads read from this input buffer which is fed f rom the realtime thread. 72 // One or more background threads read from this input buffer which is fed f rom the realtime thread.
73 ReverbInputBuffer m_inputBuffer; 73 ReverbInputBuffer m_inputBuffer;
74 74
75 // First stage will be of size m_minFFTSize. Each next stage will be twice as big until we hit m_maxFFTSize. 75 // First stage will be of size m_minFFTSize. Each next stage will be twice as big until we hit m_maxFFTSize.
76 size_t m_minFFTSize; 76 size_t m_minFFTSize;
77 size_t m_maxFFTSize; 77 size_t m_maxFFTSize;
78 78
79 // But don't exceed this size in the real-time thread (if we're doing backgr ound processing). 79 // But don't exceed this size in the real-time thread (if we're doing backgr ound processing).
80 size_t m_maxRealtimeFFTSize; 80 size_t m_maxRealtimeFFTSize;
81 81
82 // Background thread and synchronization 82 // Background thread and synchronization
83 OwnPtr<WebThread> m_backgroundThread; 83 OwnPtr<WebThread> m_backgroundThread;
84 }; 84 };
85 85
86 } // namespace blink 86 } // namespace blink
87 87
88 #endif // ReverbConvolver_h 88 #endif // ReverbConvolver_h
OLDNEW
« no previous file with comments | « Source/platform/audio/Reverb.h ('k') | Source/platform/blob/BlobRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698