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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 } | 73 } |
74 | 74 |
75 private: | 75 private: |
76 ScriptProcessorHandler(AudioNode&, | 76 ScriptProcessorHandler(AudioNode&, |
77 float sample_rate, | 77 float sample_rate, |
78 size_t buffer_size, | 78 size_t buffer_size, |
79 unsigned number_of_input_channels, | 79 unsigned number_of_input_channels, |
80 unsigned number_of_output_channels); | 80 unsigned number_of_output_channels); |
81 double TailTime() const override; | 81 double TailTime() const override; |
82 double LatencyTime() const override; | 82 double LatencyTime() const override; |
| 83 bool RequiresTailProcessing() const override; |
83 | 84 |
84 void FireProcessEvent(unsigned); | 85 void FireProcessEvent(unsigned); |
85 void FireProcessEventForOfflineAudioContext(unsigned, WaitableEvent*); | 86 void FireProcessEventForOfflineAudioContext(unsigned, WaitableEvent*); |
86 | 87 |
87 // Double buffering | 88 // Double buffering |
88 unsigned DoubleBufferIndex() const { return double_buffer_index_; } | 89 unsigned DoubleBufferIndex() const { return double_buffer_index_; } |
89 void SwapBuffers() { double_buffer_index_ = 1 - double_buffer_index_; } | 90 void SwapBuffers() { double_buffer_index_ = 1 - double_buffer_index_; } |
90 unsigned double_buffer_index_; | 91 unsigned double_buffer_index_; |
91 | 92 |
92 // These Persistent don't make reference cycles including the owner | 93 // These Persistent don't make reference cycles including the owner |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 ScriptProcessorNode(BaseAudioContext&, | 149 ScriptProcessorNode(BaseAudioContext&, |
149 float sample_rate, | 150 float sample_rate, |
150 size_t buffer_size, | 151 size_t buffer_size, |
151 unsigned number_of_input_channels, | 152 unsigned number_of_input_channels, |
152 unsigned number_of_output_channels); | 153 unsigned number_of_output_channels); |
153 }; | 154 }; |
154 | 155 |
155 } // namespace blink | 156 } // namespace blink |
156 | 157 |
157 #endif // ScriptProcessorNode_h | 158 #endif // ScriptProcessorNode_h |
OLD | NEW |