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

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

Issue 1140723003: Implement suspend() and resume() for OfflineAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Restructured the resolution of suspend promise Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/webaudio/AudioDestinationNode.h
diff --git a/Source/modules/webaudio/AudioDestinationNode.h b/Source/modules/webaudio/AudioDestinationNode.h
index 142ee084e4dcf33e042f448fb9d55c34eb478e3a..4ffbafa148566ec987be1fbea9a342205d389c9b 100644
--- a/Source/modules/webaudio/AudioDestinationNode.h
+++ b/Source/modules/webaudio/AudioDestinationNode.h
@@ -56,6 +56,10 @@ public:
virtual void startRendering() = 0;
virtual void stopRendering() = 0;
+ // This method is called only inside of OfflineAudioContext. The actual
+ // implementation is at OfflineAudioDestinationHandler.
+ virtual size_t quantizeTimeToRenderQuantum(double) const { return 0; }
+
protected:
// LocalAudioInputProvider allows us to expose an AudioSourceProvider for local/live audio input.
// If there is local/live audio input, we call set() with the audio input data every render quantum.

Powered by Google App Engine
This is Rietveld 408576698