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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.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 27 matching lines...) Expand all
38 public: 38 public:
39 static PassRefPtr<ChannelSplitterHandler> Create(AudioNode&, 39 static PassRefPtr<ChannelSplitterHandler> Create(AudioNode&,
40 float sample_rate, 40 float sample_rate,
41 unsigned number_of_outputs); 41 unsigned number_of_outputs);
42 42
43 // AudioHandler 43 // AudioHandler
44 void Process(size_t frames_to_process) override; 44 void Process(size_t frames_to_process) override;
45 void SetChannelCount(unsigned long, ExceptionState&) final; 45 void SetChannelCount(unsigned long, ExceptionState&) final;
46 void SetChannelCountMode(const String&, ExceptionState&) final; 46 void SetChannelCountMode(const String&, ExceptionState&) final;
47 47
48 // AudioNode
49 double TailTime() const override { return 0; } 48 double TailTime() const override { return 0; }
50 double LatencyTime() const override { return 0; } 49 double LatencyTime() const override { return 0; }
50 bool RequiresTailProcessing() const override { return false; }
51 51
52 private: 52 private:
53 ChannelSplitterHandler(AudioNode&, 53 ChannelSplitterHandler(AudioNode&,
54 float sample_rate, 54 float sample_rate,
55 unsigned number_of_outputs); 55 unsigned number_of_outputs);
56 }; 56 };
57 57
58 class ChannelSplitterNode final : public AudioNode { 58 class ChannelSplitterNode final : public AudioNode {
59 DEFINE_WRAPPERTYPEINFO(); 59 DEFINE_WRAPPERTYPEINFO();
60 60
61 public: 61 public:
62 static ChannelSplitterNode* Create(BaseAudioContext&, ExceptionState&); 62 static ChannelSplitterNode* Create(BaseAudioContext&, ExceptionState&);
63 static ChannelSplitterNode* Create(BaseAudioContext&, 63 static ChannelSplitterNode* Create(BaseAudioContext&,
64 unsigned number_of_outputs, 64 unsigned number_of_outputs,
65 ExceptionState&); 65 ExceptionState&);
66 static ChannelSplitterNode* Create(BaseAudioContext*, 66 static ChannelSplitterNode* Create(BaseAudioContext*,
67 const ChannelSplitterOptions&, 67 const ChannelSplitterOptions&,
68 ExceptionState&); 68 ExceptionState&);
69 69
70 private: 70 private:
71 ChannelSplitterNode(BaseAudioContext&, unsigned number_of_outputs); 71 ChannelSplitterNode(BaseAudioContext&, unsigned number_of_outputs);
72 }; 72 };
73 73
74 } // namespace blink 74 } // namespace blink
75 75
76 #endif // ChannelSplitterNode_h 76 #endif // ChannelSplitterNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698