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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual void Reset() = 0; | 63 virtual void Reset() = 0; |
64 | 64 |
65 float SampleRate() const { return sample_rate_; } | 65 float SampleRate() const { return sample_rate_; } |
66 double Nyquist() const { return 0.5 * SampleRate(); } | 66 double Nyquist() const { return 0.5 * SampleRate(); } |
67 | 67 |
68 AudioDSPKernelProcessor* Processor() { return kernel_processor_; } | 68 AudioDSPKernelProcessor* Processor() { return kernel_processor_; } |
69 const AudioDSPKernelProcessor* Processor() const { return kernel_processor_; } | 69 const AudioDSPKernelProcessor* Processor() const { return kernel_processor_; } |
70 | 70 |
71 virtual double TailTime() const = 0; | 71 virtual double TailTime() const = 0; |
72 virtual double LatencyTime() const = 0; | 72 virtual double LatencyTime() const = 0; |
| 73 virtual bool RequiresTailProcessing() const = 0; |
73 | 74 |
74 protected: | 75 protected: |
75 // This raw pointer is safe because the AudioDSPKernelProcessor object is | 76 // This raw pointer is safe because the AudioDSPKernelProcessor object is |
76 // guaranteed to be kept alive while the AudioDSPKernel object is alive. | 77 // guaranteed to be kept alive while the AudioDSPKernel object is alive. |
77 AudioDSPKernelProcessor* kernel_processor_; | 78 AudioDSPKernelProcessor* kernel_processor_; |
78 float sample_rate_; | 79 float sample_rate_; |
79 }; | 80 }; |
80 | 81 |
81 } // namespace blink | 82 } // namespace blink |
82 | 83 |
83 #endif // AudioDSPKernel_h | 84 #endif // AudioDSPKernel_h |
OLD | NEW |