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

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

Issue 2420983002: AudioParams with automations must process timelines (Closed)
Patch Set: Fix paths. Created 3 years, 11 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 processOnlyAudioParams(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698