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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioDestination.cpp

Issue 2060833002: Implementation of 'AudioContext.getOutputTimestamp' method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added implementation for ALSA. Created 4 years, 5 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: third_party/WebKit/Source/platform/audio/AudioDestination.cpp
diff --git a/third_party/WebKit/Source/platform/audio/AudioDestination.cpp b/third_party/WebKit/Source/platform/audio/AudioDestination.cpp
index 145baa8b1b0396b055be770e83030af229c93c1a..21aeabb7ea5cd16494bbf5b834caec7a84a531f8 100644
--- a/third_party/WebKit/Source/platform/audio/AudioDestination.cpp
+++ b/third_party/WebKit/Source/platform/audio/AudioDestination.cpp
@@ -148,8 +148,9 @@ unsigned long AudioDestination::maxChannelCount()
return static_cast<float>(Platform::current()->audioHardwareOutputChannels());
}
-void AudioDestination::render(const WebVector<float*>& sourceData, const WebVector<float*>& audioData, size_t numberOfFrames)
+void AudioDestination::render(const WebVector<float*>& sourceData, const WebVector<float*>& audioData, size_t numberOfFrames, const WebAudioTimestamp& timestamp)
{
+ m_outputTimestamp = timestamp;
bool isNumberOfChannelsGood = audioData.size() == m_numberOfOutputChannels;
if (!isNumberOfChannelsGood) {
ASSERT_NOT_REACHED();
@@ -185,7 +186,7 @@ void AudioDestination::provideInput(AudioBus* bus, size_t framesToProcess)
sourceBus = m_inputBus.get();
}
- m_callback.render(sourceBus, bus, framesToProcess);
+ m_callback.render(sourceBus, bus, framesToProcess, m_outputTimestamp);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698