| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_AUDIO_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_AUDIO_H_ |
| 6 #define CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_AUDIO_H_ | 6 #define CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_AUDIO_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 namespace base { | 10 namespace base { |
| 11 class FilePath; | 11 class FilePath; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace media { | 14 namespace media { |
| 15 class AudioParameters; | 15 class AudioParameters; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace test { | 18 namespace test { |
| 19 | 19 |
| 20 // Computes the average power of the audio signal seen over the entire file. | 20 // Computes the average power of the audio signal seen over the entire file. |
| 21 // | 21 // |
| 22 // The |file_parameters| pointer is filled with a copy of the audio file's | 22 // The |file_parameters| pointer is filled with a copy of the audio file's |
| 23 // parameters as deduced by wav_audio_handler.h (i.e. what's in the header). | 23 // parameters as deduced by wav_audio_handler.h (i.e. what's in the header). |
| 24 // | 24 // |
| 25 // Returns a audio dBFS (decibels relative to full-scale) value. | 25 // Returns a audio dBFS (decibels relative to full-scale) value. |
| 26 // See media/audio/audio_power_monitor.h for more details. | 26 // See media/audio/audio_power_monitor.h for more details. |
| 27 float ComputeAudioEnergyForWavFile(const base::FilePath& wav_file_path, | 27 float ComputeAudioEnergyForWavFile(const base::FilePath& wav_file_path, |
| 28 media::AudioParameters* file_parameters); | 28 media::AudioParameters* file_parameters); |
| 29 | 29 |
| 30 } // namespace test | 30 } // namespace test |
| 31 | 31 |
| 32 #endif // CHROME_BROWSER_MEDIA_WEBRTC_BROWSERTEST_AUDIO_H_ | 32 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_BROWSERTEST_AUDIO_H_ |
| OLD | NEW |