Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.h

Issue 2839063003: Implement tail processing for AudioNodes (Closed)
Patch Set: Make declaration order consistent Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698