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

Unified Diff: webrtc/test/fake_audio_device.h

Issue 2694203002: Low-bandwidth audio testing (Closed)
Patch Set: Move BoundedWavFileWriter and add unittests for it Created 3 years, 9 months 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: webrtc/test/fake_audio_device.h
diff --git a/webrtc/test/fake_audio_device.h b/webrtc/test/fake_audio_device.h
index e44ec540f0f36221624bf457ef11324d60d52f82..677145e1a9a81f287ff9328accb0cfe6f37cd211 100644
--- a/webrtc/test/fake_audio_device.h
+++ b/webrtc/test/fake_audio_device.h
@@ -89,6 +89,12 @@ class FakeAudioDevice : public FakeAudioDeviceModule {
static std::unique_ptr<Renderer> CreateWavFileWriter(
std::string filename, int sampling_frequency_in_hz);
+ // Returns a Renderer instance that writes its data to a file a WAV file,
stefan-webrtc 2017/03/20 14:40:10 "to a WAV file"
oprypin_webrtc 2017/03/20 15:09:16 Done.
+ // cutting off silence at the beginning (not necessarily perfect silence, see
+ // kAmplitudeThreshold) and at the end (only actual 0 samples in this case).
+ static std::unique_ptr<Renderer> CreateBoundedWavFileWriter(
+ std::string filename, int sampling_frequency_in_hz);
+
// Returns a Renderer instance that does nothing with the audio data.
static std::unique_ptr<Renderer> CreateDiscardRenderer(
int sampling_frequency_in_hz);

Powered by Google App Engine
This is Rietveld 408576698