Chromium Code Reviews| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 60 float sampleRate() const { return m_sampleRate; } | 60 float sampleRate() const { return m_sampleRate; } |
| 61 double nyquist() const { return 0.5 * sampleRate(); } | 61 double nyquist() const { return 0.5 * sampleRate(); } |
| 62 | 62 |
| 63 AudioDSPKernelProcessor* processor() { return m_kernelProcessor; } | 63 AudioDSPKernelProcessor* processor() { return m_kernelProcessor; } |
| 64 const AudioDSPKernelProcessor* processor() const { return m_kernelProcessor; } | 64 const AudioDSPKernelProcessor* processor() const { return m_kernelProcessor; } |
| 65 | 65 |
| 66 virtual double tailTime() const = 0; | 66 virtual double tailTime() const = 0; |
| 67 virtual double latencyTime() const = 0; | 67 virtual double latencyTime() const = 0; |
| 68 | 68 |
| 69 protected: | 69 protected: |
| 70 // Oilpan: This raw pointer is safe because the AudioDSPKernelProcessor obje ct is guaranteed | |
|
tkent
2014/08/15 07:39:01
nit: I recommend to wrap code comments in 80 colum
haraken
2014/08/15 08:08:00
Done.
| |
| 71 // to be kept alive while the AudioDSPKernel object is alive. | |
| 72 // Ideally we want to move the AudioDSPKernel hierarchy to the heap and use | |
| 73 // a Member<AudioDSPKernelProcessor>. However, we cannot do that because Aud ioDSPKernel can be | |
| 74 // allocated in audio threads (which are not registered to Oilpan). | |
| 75 GC_PLUGIN_IGNORE("") | |
| 70 AudioDSPKernelProcessor* m_kernelProcessor; | 76 AudioDSPKernelProcessor* m_kernelProcessor; |
| 71 float m_sampleRate; | 77 float m_sampleRate; |
| 72 }; | 78 }; |
| 73 | 79 |
| 74 } // namespace blink | 80 } // namespace blink |
| 75 | 81 |
| 76 #endif // AudioDSPKernel_h | 82 #endif // AudioDSPKernel_h |
| OLD | NEW |