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

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: Fixed win compile 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..71292c1d30098d5f7daefb99fffd7a64adeba9e3
--- /dev/null
+++ b/chrome/browser/media/webrtc_browsertest_audio.h
@@ -0,0 +1,32 @@
+// 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 media {
+class AudioParameters;
+}
+
+namespace test {
+
+// Computes the average power of the audio signal seen over the entire file.
+//
+// The |file_parameters| pointer is filled with a copy of the audio file's
+// parameters as deduced by wav_audio_handler.h (i.e. what's in the header).
+//
+// Returns a audio dBFS (decibels relative to full-scale) value.
+// See media/audio/audio_power_monitor.h for more details.
+float ComputeAudioEnergyForWavFile(const base::FilePath& wav_file_path,
+ media::AudioParameters* file_parameters);
+
+} // namespace test
+
+#endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_AUDIO_H_
« no previous file with comments | « chrome/browser/media/chrome_webrtc_audio_quality_browsertest.cc ('k') | chrome/browser/media/webrtc_browsertest_audio.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698