| Index: third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.h
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.h b/third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.h
|
| index d96b3eb67a54cb7e6561bc8e47e2df6253a3717e..1f148a0dcf941d267bffe79d534a59f1139c2755 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.h
|
| +++ b/third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.h
|
| @@ -28,16 +28,20 @@
|
|
|
| #include "modules/webaudio/AudioDestinationNode.h"
|
| #include "platform/audio/AudioDestination.h"
|
| +#include "public/platform/WebAudioLatencyHint.h"
|
| #include <memory>
|
|
|
| namespace blink {
|
|
|
| class BaseAudioContext;
|
| class ExceptionState;
|
| +class WebAudioLatencyHint;
|
|
|
| class DefaultAudioDestinationHandler final : public AudioDestinationHandler {
|
| public:
|
| - static PassRefPtr<DefaultAudioDestinationHandler> create(AudioNode&);
|
| + static PassRefPtr<DefaultAudioDestinationHandler> create(
|
| + AudioNode&,
|
| + const WebAudioLatencyHint&);
|
| ~DefaultAudioDestinationHandler() override;
|
|
|
| // AudioHandler
|
| @@ -52,20 +56,24 @@ class DefaultAudioDestinationHandler final : public AudioDestinationHandler {
|
| unsigned long maxChannelCount() const override;
|
|
|
| private:
|
| - explicit DefaultAudioDestinationHandler(AudioNode&);
|
| + explicit DefaultAudioDestinationHandler(AudioNode&,
|
| + const WebAudioLatencyHint&);
|
| void createDestination();
|
|
|
| std::unique_ptr<AudioDestination> m_destination;
|
| String m_inputDeviceId;
|
| unsigned m_numberOfInputChannels;
|
| + const WebAudioLatencyHint m_latencyHint;
|
| };
|
|
|
| class DefaultAudioDestinationNode final : public AudioDestinationNode {
|
| public:
|
| - static DefaultAudioDestinationNode* create(BaseAudioContext*);
|
| + static DefaultAudioDestinationNode* create(BaseAudioContext*,
|
| + const WebAudioLatencyHint&);
|
|
|
| private:
|
| - explicit DefaultAudioDestinationNode(BaseAudioContext&);
|
| + explicit DefaultAudioDestinationNode(BaseAudioContext&,
|
| + const WebAudioLatencyHint&);
|
| };
|
|
|
| } // namespace blink
|
|
|