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..fae6aee68729d0b6a9df2cd702f5664a325f6e57 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 |
@@ -50,22 +54,28 @@ class DefaultAudioDestinationHandler final : public AudioDestinationHandler { |
void startRendering() override; |
void stopRendering() override; |
unsigned long maxChannelCount() const override; |
+ double sampleRate() const override; |
+ int framesPerBuffer() 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 |