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

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

Issue 2578243002: Add constructor for MediaStreamAudioDestinationNode (Closed)
Patch Set: Rebase Created 3 years, 12 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) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 RefPtr<AudioBus> m_mixBus; 69 RefPtr<AudioBus> m_mixBus;
70 }; 70 };
71 71
72 class MediaStreamAudioDestinationNode final : public AudioBasicInspectorNode { 72 class MediaStreamAudioDestinationNode final : public AudioBasicInspectorNode {
73 DEFINE_WRAPPERTYPEINFO(); 73 DEFINE_WRAPPERTYPEINFO();
74 74
75 public: 75 public:
76 static MediaStreamAudioDestinationNode* create(BaseAudioContext&, 76 static MediaStreamAudioDestinationNode* create(BaseAudioContext&,
77 size_t numberOfChannels, 77 size_t numberOfChannels,
78 ExceptionState&); 78 ExceptionState&);
79 static MediaStreamAudioDestinationNode* create(BaseAudioContext*,
80 const AudioNodeOptions&,
81 ExceptionState&);
82
79 MediaStream* stream() const; 83 MediaStream* stream() const;
80 84
81 private: 85 private:
82 MediaStreamAudioDestinationNode(BaseAudioContext&, size_t numberOfChannels); 86 MediaStreamAudioDestinationNode(BaseAudioContext&, size_t numberOfChannels);
83 }; 87 };
84 88
85 } // namespace blink 89 } // namespace blink
86 90
87 #endif // MediaStreamAudioDestinationNode_h 91 #endif // MediaStreamAudioDestinationNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698