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

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

Issue 2394953002: ChannelSplitterNode channelCount and mode are constant (Closed)
Patch Set: Rebase and fix incorrect comment Created 4 years, 2 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 24 matching lines...) Expand all
35 class ChannelSplitterOptions; 35 class ChannelSplitterOptions;
36 36
37 class ChannelSplitterHandler final : public AudioHandler { 37 class ChannelSplitterHandler final : public AudioHandler {
38 public: 38 public:
39 static PassRefPtr<ChannelSplitterHandler> create(AudioNode&, 39 static PassRefPtr<ChannelSplitterHandler> create(AudioNode&,
40 float sampleRate, 40 float sampleRate,
41 unsigned numberOfOutputs); 41 unsigned numberOfOutputs);
42 42
43 // AudioHandler 43 // AudioHandler
44 void process(size_t framesToProcess) override; 44 void process(size_t framesToProcess) override;
45 void setChannelCount(unsigned long, ExceptionState&) final;
46 void setChannelCountMode(const String&, ExceptionState&) final;
45 47
46 private: 48 private:
47 ChannelSplitterHandler(AudioNode&, 49 ChannelSplitterHandler(AudioNode&,
48 float sampleRate, 50 float sampleRate,
49 unsigned numberOfOutputs); 51 unsigned numberOfOutputs);
50 }; 52 };
51 53
52 class ChannelSplitterNode final : public AudioNode { 54 class ChannelSplitterNode final : public AudioNode {
53 DEFINE_WRAPPERTYPEINFO(); 55 DEFINE_WRAPPERTYPEINFO();
54 56
55 public: 57 public:
56 static ChannelSplitterNode* create(BaseAudioContext&, ExceptionState&); 58 static ChannelSplitterNode* create(BaseAudioContext&, ExceptionState&);
57 static ChannelSplitterNode* create(BaseAudioContext&, 59 static ChannelSplitterNode* create(BaseAudioContext&,
58 unsigned numberOfOutputs, 60 unsigned numberOfOutputs,
59 ExceptionState&); 61 ExceptionState&);
60 static ChannelSplitterNode* create(BaseAudioContext*, 62 static ChannelSplitterNode* create(BaseAudioContext*,
61 const ChannelSplitterOptions&, 63 const ChannelSplitterOptions&,
62 ExceptionState&); 64 ExceptionState&);
63 65
64 private: 66 private:
65 ChannelSplitterNode(BaseAudioContext&, unsigned numberOfOutputs); 67 ChannelSplitterNode(BaseAudioContext&, unsigned numberOfOutputs);
66 }; 68 };
67 69
68 } // namespace blink 70 } // namespace blink
69 71
70 #endif // ChannelSplitterNode_h 72 #endif // ChannelSplitterNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698