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

Unified Diff: components/test_runner/mock_web_audio_device.cc

Issue 2501863003: Support for AudioContextOptions latencyHint. (Closed)
Patch Set: Updates based on reviewer comments. Created 4 years 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: components/test_runner/mock_web_audio_device.cc
diff --git a/components/test_runner/mock_web_audio_device.cc b/components/test_runner/mock_web_audio_device.cc
index 6788d86b6fc27d04bb2842c2d1fbfa83547aaf43..bfd83fe47131a884218e9fda76bae15f58432b26 100644
--- a/components/test_runner/mock_web_audio_device.cc
+++ b/components/test_runner/mock_web_audio_device.cc
@@ -6,8 +6,9 @@
namespace test_runner {
-MockWebAudioDevice::MockWebAudioDevice(double sample_rate)
- : sample_rate_(sample_rate) {}
+MockWebAudioDevice::MockWebAudioDevice(double sample_rate,
+ int frames_per_buffer)
+ : sample_rate_(sample_rate), frames_per_buffer_(frames_per_buffer) {}
MockWebAudioDevice::~MockWebAudioDevice() {}
@@ -19,4 +20,8 @@ double MockWebAudioDevice::sampleRate() {
return sample_rate_;
}
+int MockWebAudioDevice::framesPerBuffer() {
+ return frames_per_buffer_;
+}
+
} // namespace test_runner

Powered by Google App Engine
This is Rietveld 408576698