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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.h

Issue 2501863003: Support for AudioContextOptions latencyHint. (Closed)
Patch Set: Add baseLatency and fix use of hardwareSampleRate. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.h
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.h b/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.h
index dc7fe45b785aa4c552a80638aed3a35d425c3ec1..ad9a8e2e69b9fabb7537c112bcb7b8ca689d22a4 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.h
+++ b/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.h
@@ -39,7 +39,7 @@ class BaseAudioContext;
class AudioDestinationHandler : public AudioHandler, public AudioIOCallback {
public:
- AudioDestinationHandler(AudioNode&, float sampleRate);
+ AudioDestinationHandler(AudioNode&);
~AudioDestinationHandler() override;
// AudioHandler
@@ -65,6 +65,9 @@ class AudioDestinationHandler : public AudioHandler, public AudioIOCallback {
virtual void startRendering() = 0;
virtual void stopRendering() = 0;
+ virtual double sampleRate() const = 0;
+ virtual int framesPerBuffer() const = 0;
Raymond Toy 2016/11/30 21:50:27 Please add comment on what framesPerBuffer actuall
Andrew MacPherson 2016/12/01 12:11:56 Done.
+
protected:
// LocalAudioInputProvider allows us to expose an AudioSourceProvider for
// local/live audio input. If there is local/live audio input, we call set()

Powered by Google App Engine
This is Rietveld 408576698