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

Unified Diff: webrtc/rtc_tools/event_log_visualizer/main.cc

Issue 2996953002: Make path to wav file for jitter buffer simulation in event_log_visualizer configurable. (Closed)
Patch Set: Created 3 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/rtc_tools/event_log_visualizer/main.cc
diff --git a/webrtc/rtc_tools/event_log_visualizer/main.cc b/webrtc/rtc_tools/event_log_visualizer/main.cc
index 7df0374484aec628b85e76f2884ab14054c189e7..d9760d1dc4ef19210be5ba2626cf0258c3c2a944 100644
--- a/webrtc/rtc_tools/event_log_visualizer/main.cc
+++ b/webrtc/rtc_tools/event_log_visualizer/main.cc
@@ -88,6 +88,9 @@ DEFINE_string(
"E.g. running with --force_fieldtrials=WebRTC-FooFeature/Enabled/"
" will assign the group Enabled to field trial WebRTC-FooFeature. Multiple "
"trials are separated by \"/\"");
+DEFINE_string(wav_filename,
+ "",
hlundin-webrtc 2017/08/15 11:54:45 Is it possible to use webrtc::test::ResourcePath("
owb1 2017/08/15 13:01:28 This does not seem to work and results in an undef
hlundin-webrtc 2017/08/15 13:51:17 Acknowledged. I thought so too, but figured that m
+ "Path to wav file used for simulation of jitter buffer");
DEFINE_bool(help, false, "prints this message");
DEFINE_bool(
@@ -241,11 +244,15 @@ int main(int argc, char* argv[]) {
}
if (FLAG_plot_all || FLAG_plot_audio_jitter_buffer) {
- analyzer.CreateAudioJitterBufferGraph(
- webrtc::test::ResourcePath(
- "audio_processing/conversational_speech/EN_script2_F_sp2_B1",
- "wav"),
- 48000, collection->AppendNewPlot());
+ std::string wav_path;
hlundin-webrtc 2017/08/15 11:54:45 If you can't set the flag default as above, I sugg
owb1 2017/08/15 13:01:28 I implemented this version. FLAG_wav_filename is a
hlundin-webrtc 2017/08/15 13:51:17 Oh, I thought it was a c++ string. I must be confu
+ if (FLAG_wav_filename[0] != '\0') {
+ wav_path = FLAG_wav_filename;
+ } else {
+ wav_path = webrtc::test::ResourcePath(
+ "audio_processing/conversational_speech/EN_script2_F_sp2_B1", "wav");
+ }
+ analyzer.CreateAudioJitterBufferGraph(wav_path, 48000,
+ collection->AppendNewPlot());
}
collection->Draw();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698