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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/ChannelMergerNode.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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 29 matching lines...) Expand all
40 class ChannelMergerHandler final : public AudioHandler { 40 class ChannelMergerHandler final : public AudioHandler {
41 public: 41 public:
42 static PassRefPtr<ChannelMergerHandler> Create(AudioNode&, 42 static PassRefPtr<ChannelMergerHandler> Create(AudioNode&,
43 float sample_rate, 43 float sample_rate,
44 unsigned number_of_inputs); 44 unsigned number_of_inputs);
45 45
46 void Process(size_t frames_to_process) override; 46 void Process(size_t frames_to_process) override;
47 void SetChannelCount(unsigned long, ExceptionState&) final; 47 void SetChannelCount(unsigned long, ExceptionState&) final;
48 void SetChannelCountMode(const String&, ExceptionState&) final; 48 void SetChannelCountMode(const String&, ExceptionState&) final;
49 49
50 // AudioNode
51 double TailTime() const override { return 0; } 50 double TailTime() const override { return 0; }
52 double LatencyTime() const override { return 0; } 51 double LatencyTime() const override { return 0; }
52 bool RequiresTailProcessing() const override { return false; }
53 53
54 private: 54 private:
55 ChannelMergerHandler(AudioNode&, 55 ChannelMergerHandler(AudioNode&,
56 float sample_rate, 56 float sample_rate,
57 unsigned number_of_inputs); 57 unsigned number_of_inputs);
58 }; 58 };
59 59
60 class ChannelMergerNode final : public AudioNode { 60 class ChannelMergerNode final : public AudioNode {
61 DEFINE_WRAPPERTYPEINFO(); 61 DEFINE_WRAPPERTYPEINFO();
62 62
63 public: 63 public:
64 static ChannelMergerNode* Create(BaseAudioContext&, ExceptionState&); 64 static ChannelMergerNode* Create(BaseAudioContext&, ExceptionState&);
65 static ChannelMergerNode* Create(BaseAudioContext&, 65 static ChannelMergerNode* Create(BaseAudioContext&,
66 unsigned number_of_inputs, 66 unsigned number_of_inputs,
67 ExceptionState&); 67 ExceptionState&);
68 static ChannelMergerNode* Create(BaseAudioContext*, 68 static ChannelMergerNode* Create(BaseAudioContext*,
69 const ChannelMergerOptions&, 69 const ChannelMergerOptions&,
70 ExceptionState&); 70 ExceptionState&);
71 71
72 private: 72 private:
73 ChannelMergerNode(BaseAudioContext&, unsigned number_of_inputs); 73 ChannelMergerNode(BaseAudioContext&, unsigned number_of_inputs);
74 }; 74 };
75 75
76 } // namespace blink 76 } // namespace blink
77 77
78 #endif // ChannelMergerNode_h 78 #endif // ChannelMergerNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698