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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 public: | 42 public: |
43 static PassRefPtr<AudioBasicProcessorHandler> create( | 43 static PassRefPtr<AudioBasicProcessorHandler> create( |
44 NodeType, | 44 NodeType, |
45 AudioNode&, | 45 AudioNode&, |
46 float sampleRate, | 46 float sampleRate, |
47 std::unique_ptr<AudioProcessor>); | 47 std::unique_ptr<AudioProcessor>); |
48 ~AudioBasicProcessorHandler() override; | 48 ~AudioBasicProcessorHandler() override; |
49 | 49 |
50 // AudioHandler | 50 // AudioHandler |
51 void process(size_t framesToProcess) final; | 51 void process(size_t framesToProcess) final; |
| 52 void processAudioParams(size_t framesToProcess) final; |
52 void pullInputs(size_t framesToProcess) final; | 53 void pullInputs(size_t framesToProcess) final; |
53 void initialize() final; | 54 void initialize() final; |
54 void uninitialize() final; | 55 void uninitialize() final; |
55 | 56 |
56 // Called in the main thread when the number of channels for the input may | 57 // Called in the main thread when the number of channels for the input may |
57 // have changed. | 58 // have changed. |
58 void checkNumberOfChannelsForInput(AudioNodeInput*) final; | 59 void checkNumberOfChannelsForInput(AudioNodeInput*) final; |
59 | 60 |
60 // Returns the number of channels for both the input and the output. | 61 // Returns the number of channels for both the input and the output. |
61 unsigned numberOfChannels(); | 62 unsigned numberOfChannels(); |
62 AudioProcessor* processor() { return m_processor.get(); } | 63 AudioProcessor* processor() { return m_processor.get(); } |
63 | 64 |
64 private: | 65 private: |
65 AudioBasicProcessorHandler(NodeType, | 66 AudioBasicProcessorHandler(NodeType, |
66 AudioNode&, | 67 AudioNode&, |
67 float sampleRate, | 68 float sampleRate, |
68 std::unique_ptr<AudioProcessor>); | 69 std::unique_ptr<AudioProcessor>); |
69 double tailTime() const final; | 70 double tailTime() const final; |
70 double latencyTime() const final; | 71 double latencyTime() const final; |
71 | 72 |
72 std::unique_ptr<AudioProcessor> m_processor; | 73 std::unique_ptr<AudioProcessor> m_processor; |
73 }; | 74 }; |
74 | 75 |
75 } // namespace blink | 76 } // namespace blink |
76 | 77 |
77 #endif // AudioBasicProcessorHandler_h | 78 #endif // AudioBasicProcessorHandler_h |
OLD | NEW |