OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_AUDIO_H_ |
| 6 #define CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_AUDIO_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 namespace base { |
| 11 class FilePath; |
| 12 } |
| 13 |
| 14 namespace test { |
| 15 |
| 16 // Computes the average power of the audio signal for each 10-millisecond |
| 17 // interval in the wav file pointed to by |wav_file_path|. |
| 18 // |
| 19 // Returns a vector of audio dBFS (decibels relative to full-scale) values. |
| 20 // See media/audio/audio_power_monitor.h for more details. |
| 21 std::vector<float> ComputeAudioEnergyForWavFile( |
| 22 const base::FilePath& wav_file_path); |
| 23 |
| 24 } // namespace test |
| 25 |
| 26 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_AUDIO_H_ |
OLD | NEW |