OLD | NEW |
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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // Subclasses create the appropriate type of processing kernel here. | 57 // Subclasses create the appropriate type of processing kernel here. |
58 // We'll call this to create a kernel for each channel. | 58 // We'll call this to create a kernel for each channel. |
59 virtual std::unique_ptr<AudioDSPKernel> createKernel() = 0; | 59 virtual std::unique_ptr<AudioDSPKernel> createKernel() = 0; |
60 | 60 |
61 // AudioProcessor methods | 61 // AudioProcessor methods |
62 void initialize() override; | 62 void initialize() override; |
63 void uninitialize() override; | 63 void uninitialize() override; |
64 void process(const AudioBus* source, | 64 void process(const AudioBus* source, |
65 AudioBus* destination, | 65 AudioBus* destination, |
66 size_t framesToProcess) override; | 66 size_t framesToProcess) override; |
| 67 void processOnlyAudioParams(size_t framesToProcess) override; |
67 void reset() override; | 68 void reset() override; |
68 void setNumberOfChannels(unsigned) override; | 69 void setNumberOfChannels(unsigned) override; |
69 unsigned numberOfChannels() const override { return m_numberOfChannels; } | 70 unsigned numberOfChannels() const override { return m_numberOfChannels; } |
70 | 71 |
71 double tailTime() const override; | 72 double tailTime() const override; |
72 double latencyTime() const override; | 73 double latencyTime() const override; |
73 | 74 |
74 protected: | 75 protected: |
75 Vector<std::unique_ptr<AudioDSPKernel>> m_kernels; | 76 Vector<std::unique_ptr<AudioDSPKernel>> m_kernels; |
76 mutable Mutex m_processLock; | 77 mutable Mutex m_processLock; |
77 bool m_hasJustReset; | 78 bool m_hasJustReset; |
78 }; | 79 }; |
79 | 80 |
80 } // namespace blink | 81 } // namespace blink |
81 | 82 |
82 #endif // AudioDSPKernelProcessor_h | 83 #endif // AudioDSPKernelProcessor_h |
OLD | NEW |