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

Unified Diff: chrome/browser/media/webrtc_browsertest_audio.h

Issue 799983002: Adding WebRTC Auto Gain Control Test (linux) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More cleanup Created 6 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: chrome/browser/media/webrtc_browsertest_audio.h
diff --git a/chrome/browser/media/webrtc_browsertest_audio.h b/chrome/browser/media/webrtc_browsertest_audio.h
new file mode 100644
index 0000000000000000000000000000000000000000..25b717007996a2bb509da7be832dc54d84c5af73
--- /dev/null
+++ b/chrome/browser/media/webrtc_browsertest_audio.h
@@ -0,0 +1,26 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_AUDIO_H_
+#define CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_AUDIO_H_
+
+#include <vector>
+
+namespace base {
+class FilePath;
+}
+
+namespace test {
+
+// Computes the average power of the audio signal for each 10-millisecond
+// interval in the wav file pointed to by |wav_file_path|.
+//
+// Returns a vector of audio dBFS (decibels relative to full-scale) values.
+// See media/audio/audio_power_monitor.h for more details.
+std::vector<float> ComputeAudioEnergyForWavFile(
+ const base::FilePath& wav_file_path);
+
+} // namespace test
+
+#endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_AUDIO_H_

Powered by Google App Engine
This is Rietveld 408576698