| 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 bool Normalize() const { return normalize_; } | 58 bool Normalize() const { return normalize_; } |
| 59 void SetNormalize(bool normalize) { normalize_ = normalize; } | 59 void SetNormalize(bool normalize) { normalize_ = normalize; } |
| 60 void SetChannelCount(unsigned long, ExceptionState&) final; | 60 void SetChannelCount(unsigned long, ExceptionState&) final; |
| 61 void SetChannelCountMode(const String&, ExceptionState&) final; | 61 void SetChannelCountMode(const String&, ExceptionState&) final; |
| 62 | 62 |
| 63 private: | 63 private: |
| 64 ConvolverHandler(AudioNode&, float sample_rate); | 64 ConvolverHandler(AudioNode&, float sample_rate); |
| 65 double TailTime() const override; | 65 double TailTime() const override; |
| 66 double LatencyTime() const override; | 66 double LatencyTime() const override; |
| 67 bool RequiresTailProcessing() const override; |
| 67 | 68 |
| 68 // Determine how many output channels to use from the number of | 69 // Determine how many output channels to use from the number of |
| 69 // input channels and the number of channels in the impulse response | 70 // input channels and the number of channels in the impulse response |
| 70 // buffer. | 71 // buffer. |
| 71 unsigned ComputeNumberOfOutputChannels(unsigned input_channels, | 72 unsigned ComputeNumberOfOutputChannels(unsigned input_channels, |
| 72 unsigned response_channels) const; | 73 unsigned response_channels) const; |
| 73 | 74 |
| 74 std::unique_ptr<Reverb> reverb_; | 75 std::unique_ptr<Reverb> reverb_; |
| 75 // This Persistent doesn't make a reference cycle including the owner | 76 // This Persistent doesn't make a reference cycle including the owner |
| 76 // ConvolverNode. | 77 // ConvolverNode. |
| (...skipping 27 matching lines...) Expand all Loading... |
| 104 private: | 105 private: |
| 105 ConvolverNode(BaseAudioContext&); | 106 ConvolverNode(BaseAudioContext&); |
| 106 ConvolverHandler& GetConvolverHandler() const; | 107 ConvolverHandler& GetConvolverHandler() const; |
| 107 | 108 |
| 108 FRIEND_TEST_ALL_PREFIXES(ConvolverNodeTest, ReverbLifetime); | 109 FRIEND_TEST_ALL_PREFIXES(ConvolverNodeTest, ReverbLifetime); |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 } // namespace blink | 112 } // namespace blink |
| 112 | 113 |
| 113 #endif // ConvolverNode_h | 114 #endif // ConvolverNode_h |
| OLD | NEW |