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

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

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.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp b/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp
index 78eeb8ced6c5b85f712aabcab8f7e35e8b57d497..ab6f9716badf227b5729b0ccf61624dd52cfdfb7 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp
@@ -33,9 +33,8 @@
namespace blink {
-AudioDestinationHandler::AudioDestinationHandler(AudioNode& node,
- float sampleRate)
- : AudioHandler(NodeTypeDestination, node, sampleRate),
+AudioDestinationHandler::AudioDestinationHandler(AudioNode& node)
+ : AudioHandler(NodeTypeDestination, node, node.context()->sampleRate()),
m_currentSampleFrame(0) {
addInput();
}

Powered by Google App Engine
This is Rietveld 408576698