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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/GainNode.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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 AudioParamHandler& gain); 47 AudioParamHandler& gain);
48 48
49 // AudioHandler 49 // AudioHandler
50 void Process(size_t frames_to_process) override; 50 void Process(size_t frames_to_process) override;
51 void ProcessOnlyAudioParams(size_t frames_to_process) override; 51 void ProcessOnlyAudioParams(size_t frames_to_process) override;
52 52
53 // Called in the main thread when the number of channels for the input may 53 // Called in the main thread when the number of channels for the input may
54 // have changed. 54 // have changed.
55 void CheckNumberOfChannelsForInput(AudioNodeInput*) override; 55 void CheckNumberOfChannelsForInput(AudioNodeInput*) override;
56 56
57 // AudioNode
58 double TailTime() const override { return 0; } 57 double TailTime() const override { return 0; }
59 double LatencyTime() const override { return 0; } 58 double LatencyTime() const override { return 0; }
59 bool RequiresTailProcessing() const override { return false; }
60 60
61 private: 61 private:
62 GainHandler(AudioNode&, float sample_rate, AudioParamHandler& gain); 62 GainHandler(AudioNode&, float sample_rate, AudioParamHandler& gain);
63 63
64 float last_gain_; // for de-zippering 64 float last_gain_; // for de-zippering
65 RefPtr<AudioParamHandler> gain_; 65 RefPtr<AudioParamHandler> gain_;
66 66
67 AudioFloatArray sample_accurate_gain_values_; 67 AudioFloatArray sample_accurate_gain_values_;
68 }; 68 };
69 69
(...skipping 11 matching lines...) Expand all
81 81
82 private: 82 private:
83 GainNode(BaseAudioContext&); 83 GainNode(BaseAudioContext&);
84 84
85 Member<AudioParam> gain_; 85 Member<AudioParam> gain_;
86 }; 86 };
87 87
88 } // namespace blink 88 } // namespace blink
89 89
90 #endif // GainNode_h 90 #endif // GainNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698