andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | // Commandline tool to unpack audioproc debug files. |
| 12 | // |
| 13 | // The debug files are dumped as protobuf blobs. For analysis, it's necessary |
| 14 | // to unpack the file into its component parts: audio and other data. |
| 15 | |
| 16 | #include <stdio.h> |
| 17 | |
pbos@webrtc.org | 7fad4b8 | 2013-05-28 08:11:59 +0000 | [diff] [blame] | 18 | #include "gflags/gflags.h" |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 19 | #include "webrtc/audio_processing/debug.pb.h" |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 20 | #include "webrtc/modules/audio_processing/test/test_utils.h" |
pbos@webrtc.org | 7fad4b8 | 2013-05-28 08:11:59 +0000 | [diff] [blame] | 21 | #include "webrtc/system_wrappers/interface/scoped_ptr.h" |
| 22 | #include "webrtc/typedefs.h" |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 23 | |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 24 | // TODO(andrew): unpack more of the data. |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 25 | DEFINE_string(input_file, "input", "The name of the input stream file."); |
| 26 | DEFINE_string(output_file, "ref_out", |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 27 | "The name of the reference output stream file."); |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 28 | DEFINE_string(reverse_file, "reverse", |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 29 | "The name of the reverse input stream file."); |
| 30 | DEFINE_string(delay_file, "delay.int32", "The name of the delay file."); |
| 31 | DEFINE_string(drift_file, "drift.int32", "The name of the drift file."); |
| 32 | DEFINE_string(level_file, "level.int32", "The name of the level file."); |
andrew@webrtc.org | ce8e077 | 2014-02-12 15:28:30 +0000 | [diff] [blame] | 33 | DEFINE_string(keypress_file, "keypress.bool", "The name of the keypress file."); |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 34 | DEFINE_string(settings_file, "settings.txt", "The name of the settings file."); |
| 35 | DEFINE_bool(full, false, |
| 36 | "Unpack the full set of files (normally not needed)."); |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 37 | DEFINE_bool(raw, false, "Write raw data instead of a WAV file."); |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 38 | |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 39 | namespace webrtc { |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 40 | |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 41 | using audioproc::Event; |
| 42 | using audioproc::ReverseStream; |
| 43 | using audioproc::Stream; |
| 44 | using audioproc::Init; |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 45 | |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 46 | void WriteData(const void* data, size_t size, FILE* file, |
| 47 | const std::string& filename) { |
| 48 | if (fwrite(data, size, 1, file) != 1) { |
| 49 | printf("Error when writing to %s\n", filename.c_str()); |
| 50 | exit(1); |
| 51 | } |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 52 | } |
| 53 | |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 54 | int do_main(int argc, char* argv[]) { |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 55 | std::string program_name = argv[0]; |
| 56 | std::string usage = "Commandline tool to unpack audioproc debug files.\n" |
| 57 | "Example usage:\n" + program_name + " debug_dump.pb\n"; |
| 58 | google::SetUsageMessage(usage); |
| 59 | google::ParseCommandLineFlags(&argc, &argv, true); |
| 60 | |
| 61 | if (argc < 2) { |
| 62 | printf("%s", google::ProgramUsage()); |
| 63 | return 1; |
| 64 | } |
| 65 | |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 66 | FILE* debug_file = OpenFile(argv[1], "rb"); |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 67 | |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 68 | Event event_msg; |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 69 | int frame_count = 0; |
aluebs@webrtc.org | bac0726 | 2014-09-03 13:39:01 +0000 | [diff] [blame] | 70 | int reverse_samples_per_channel = 0; |
| 71 | int input_samples_per_channel = 0; |
| 72 | int output_samples_per_channel = 0; |
| 73 | int num_reverse_channels = 0; |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 74 | int num_input_channels = 0; |
| 75 | int num_output_channels = 0; |
andrew@webrtc.org | a3ed713 | 2014-10-31 21:51:03 +0000 | [diff] [blame] | 76 | scoped_ptr<WavWriter> reverse_wav_file; |
| 77 | scoped_ptr<WavWriter> input_wav_file; |
| 78 | scoped_ptr<WavWriter> output_wav_file; |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 79 | scoped_ptr<RawFile> reverse_raw_file; |
| 80 | scoped_ptr<RawFile> input_raw_file; |
| 81 | scoped_ptr<RawFile> output_raw_file; |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 82 | while (ReadMessageFromFile(debug_file, &event_msg)) { |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 83 | if (event_msg.type() == Event::REVERSE_STREAM) { |
| 84 | if (!event_msg.has_reverse_stream()) { |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 85 | printf("Corrupt input file: ReverseStream missing.\n"); |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 86 | return 1; |
| 87 | } |
| 88 | |
| 89 | const ReverseStream msg = event_msg.reverse_stream(); |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 90 | if (msg.has_data()) { |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 91 | if (FLAGS_raw && !reverse_raw_file) { |
| 92 | reverse_raw_file.reset(new RawFile(FLAGS_reverse_file + ".pcm")); |
| 93 | } |
aluebs@webrtc.org | bac0726 | 2014-09-03 13:39:01 +0000 | [diff] [blame] | 94 | // TODO(aluebs): Replace "num_reverse_channels * |
| 95 | // reverse_samples_per_channel" with "msg.data().size() / |
| 96 | // sizeof(int16_t)" and so on when this fix in audio_processing has made |
| 97 | // it into stable: https://webrtc-codereview.appspot.com/15299004/ |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 98 | WriteIntData(reinterpret_cast<const int16_t*>(msg.data().data()), |
aluebs@webrtc.org | bac0726 | 2014-09-03 13:39:01 +0000 | [diff] [blame] | 99 | num_reverse_channels * reverse_samples_per_channel, |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 100 | reverse_wav_file.get(), |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 101 | reverse_raw_file.get()); |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 102 | } else if (msg.channel_size() > 0) { |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 103 | if (FLAGS_raw && !reverse_raw_file) { |
| 104 | reverse_raw_file.reset(new RawFile(FLAGS_reverse_file + ".float")); |
| 105 | } |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 106 | scoped_ptr<const float*[]> data(new const float*[num_reverse_channels]); |
| 107 | for (int i = 0; i < num_reverse_channels; ++i) { |
| 108 | data[i] = reinterpret_cast<const float*>(msg.channel(i).data()); |
| 109 | } |
| 110 | WriteFloatData(data.get(), |
aluebs@webrtc.org | bac0726 | 2014-09-03 13:39:01 +0000 | [diff] [blame] | 111 | reverse_samples_per_channel, |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 112 | num_reverse_channels, |
| 113 | reverse_wav_file.get(), |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 114 | reverse_raw_file.get()); |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 115 | } |
| 116 | } else if (event_msg.type() == Event::STREAM) { |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 117 | frame_count++; |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 118 | if (!event_msg.has_stream()) { |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 119 | printf("Corrupt input file: Stream missing.\n"); |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 120 | return 1; |
| 121 | } |
| 122 | |
| 123 | const Stream msg = event_msg.stream(); |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 124 | if (msg.has_input_data()) { |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 125 | if (FLAGS_raw && !input_raw_file) { |
| 126 | input_raw_file.reset(new RawFile(FLAGS_input_file + ".pcm")); |
| 127 | } |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 128 | WriteIntData(reinterpret_cast<const int16_t*>(msg.input_data().data()), |
aluebs@webrtc.org | bac0726 | 2014-09-03 13:39:01 +0000 | [diff] [blame] | 129 | num_input_channels * input_samples_per_channel, |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 130 | input_wav_file.get(), |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 131 | input_raw_file.get()); |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 132 | } else if (msg.input_channel_size() > 0) { |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 133 | if (FLAGS_raw && !input_raw_file) { |
| 134 | input_raw_file.reset(new RawFile(FLAGS_input_file + ".float")); |
| 135 | } |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 136 | scoped_ptr<const float*[]> data(new const float*[num_input_channels]); |
| 137 | for (int i = 0; i < num_input_channels; ++i) { |
| 138 | data[i] = reinterpret_cast<const float*>(msg.input_channel(i).data()); |
| 139 | } |
| 140 | WriteFloatData(data.get(), |
aluebs@webrtc.org | bac0726 | 2014-09-03 13:39:01 +0000 | [diff] [blame] | 141 | input_samples_per_channel, |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 142 | num_input_channels, |
| 143 | input_wav_file.get(), |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 144 | input_raw_file.get()); |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 145 | } |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 146 | |
| 147 | if (msg.has_output_data()) { |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 148 | if (FLAGS_raw && !output_raw_file) { |
| 149 | output_raw_file.reset(new RawFile(FLAGS_output_file + ".pcm")); |
| 150 | } |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 151 | WriteIntData(reinterpret_cast<const int16_t*>(msg.output_data().data()), |
aluebs@webrtc.org | bac0726 | 2014-09-03 13:39:01 +0000 | [diff] [blame] | 152 | num_output_channels * output_samples_per_channel, |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 153 | output_wav_file.get(), |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 154 | output_raw_file.get()); |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 155 | } else if (msg.output_channel_size() > 0) { |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 156 | if (FLAGS_raw && !output_raw_file) { |
| 157 | output_raw_file.reset(new RawFile(FLAGS_output_file + ".float")); |
| 158 | } |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 159 | scoped_ptr<const float*[]> data(new const float*[num_output_channels]); |
| 160 | for (int i = 0; i < num_output_channels; ++i) { |
| 161 | data[i] = |
| 162 | reinterpret_cast<const float*>(msg.output_channel(i).data()); |
| 163 | } |
| 164 | WriteFloatData(data.get(), |
aluebs@webrtc.org | bac0726 | 2014-09-03 13:39:01 +0000 | [diff] [blame] | 165 | output_samples_per_channel, |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 166 | num_output_channels, |
| 167 | output_wav_file.get(), |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 168 | output_raw_file.get()); |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 169 | } |
| 170 | |
| 171 | if (FLAGS_full) { |
| 172 | if (msg.has_delay()) { |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 173 | static FILE* delay_file = OpenFile(FLAGS_delay_file, "wb"); |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 174 | int32_t delay = msg.delay(); |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 175 | WriteData(&delay, sizeof(delay), delay_file, FLAGS_delay_file); |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 176 | } |
| 177 | |
| 178 | if (msg.has_drift()) { |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 179 | static FILE* drift_file = OpenFile(FLAGS_drift_file, "wb"); |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 180 | int32_t drift = msg.drift(); |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 181 | WriteData(&drift, sizeof(drift), drift_file, FLAGS_drift_file); |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 182 | } |
| 183 | |
| 184 | if (msg.has_level()) { |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 185 | static FILE* level_file = OpenFile(FLAGS_level_file, "wb"); |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 186 | int32_t level = msg.level(); |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 187 | WriteData(&level, sizeof(level), level_file, FLAGS_level_file); |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 188 | } |
andrew@webrtc.org | ce8e077 | 2014-02-12 15:28:30 +0000 | [diff] [blame] | 189 | |
| 190 | if (msg.has_keypress()) { |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 191 | static FILE* keypress_file = OpenFile(FLAGS_keypress_file, "wb"); |
andrew@webrtc.org | ce8e077 | 2014-02-12 15:28:30 +0000 | [diff] [blame] | 192 | bool keypress = msg.keypress(); |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 193 | WriteData(&keypress, sizeof(keypress), keypress_file, |
| 194 | FLAGS_keypress_file); |
andrew@webrtc.org | ce8e077 | 2014-02-12 15:28:30 +0000 | [diff] [blame] | 195 | } |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 196 | } |
| 197 | } else if (event_msg.type() == Event::INIT) { |
| 198 | if (!event_msg.has_init()) { |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 199 | printf("Corrupt input file: Init missing.\n"); |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 200 | return 1; |
| 201 | } |
| 202 | |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 203 | static FILE* settings_file = OpenFile(FLAGS_settings_file, "wb"); |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 204 | const Init msg = event_msg.init(); |
| 205 | // These should print out zeros if they're missing. |
| 206 | fprintf(settings_file, "Init at frame: %d\n", frame_count); |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 207 | int input_sample_rate = msg.sample_rate(); |
| 208 | fprintf(settings_file, " Input sample rate: %d\n", input_sample_rate); |
| 209 | int output_sample_rate = msg.output_sample_rate(); |
| 210 | fprintf(settings_file, " Output sample rate: %d\n", output_sample_rate); |
| 211 | int reverse_sample_rate = msg.reverse_sample_rate(); |
| 212 | fprintf(settings_file, |
| 213 | " Reverse sample rate: %d\n", |
| 214 | reverse_sample_rate); |
| 215 | num_input_channels = msg.num_input_channels(); |
| 216 | fprintf(settings_file, " Input channels: %d\n", num_input_channels); |
| 217 | num_output_channels = msg.num_output_channels(); |
| 218 | fprintf(settings_file, " Output channels: %d\n", num_output_channels); |
| 219 | num_reverse_channels = msg.num_reverse_channels(); |
| 220 | fprintf(settings_file, " Reverse channels: %d\n", num_reverse_channels); |
andrew@webrtc.org | cd82438 | 2011-11-11 19:13:36 +0000 | [diff] [blame] | 221 | |
| 222 | fprintf(settings_file, "\n"); |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 223 | |
| 224 | if (reverse_sample_rate == 0) { |
| 225 | reverse_sample_rate = input_sample_rate; |
| 226 | } |
| 227 | if (output_sample_rate == 0) { |
| 228 | output_sample_rate = input_sample_rate; |
| 229 | } |
| 230 | |
aluebs@webrtc.org | bac0726 | 2014-09-03 13:39:01 +0000 | [diff] [blame] | 231 | reverse_samples_per_channel = reverse_sample_rate / 100; |
| 232 | input_samples_per_channel = input_sample_rate / 100; |
| 233 | output_samples_per_channel = output_sample_rate / 100; |
| 234 | |
aluebs@webrtc.org | 021e76f | 2014-09-04 18:12:00 +0000 | [diff] [blame] | 235 | if (!FLAGS_raw) { |
| 236 | // The WAV files need to be reset every time, because they cant change |
| 237 | // their sample rate or number of channels. |
andrew@webrtc.org | a3ed713 | 2014-10-31 21:51:03 +0000 | [diff] [blame] | 238 | reverse_wav_file.reset(new WavWriter(FLAGS_reverse_file + ".wav", |
| 239 | reverse_sample_rate, |
| 240 | num_reverse_channels)); |
| 241 | input_wav_file.reset(new WavWriter(FLAGS_input_file + ".wav", |
| 242 | input_sample_rate, |
| 243 | num_input_channels)); |
| 244 | output_wav_file.reset(new WavWriter(FLAGS_output_file + ".wav", |
| 245 | output_sample_rate, |
| 246 | num_output_channels)); |
aluebs@webrtc.org | 841f58f | 2014-09-02 07:51:51 +0000 | [diff] [blame] | 247 | } |
andrew@webrtc.org | cb18121 | 2011-10-26 00:27:17 +0000 | [diff] [blame] | 248 | } |
| 249 | } |
| 250 | |
| 251 | return 0; |
| 252 | } |
andrew@webrtc.org | a8b9737 | 2014-03-10 22:26:12 +0000 | [diff] [blame] | 253 | |
| 254 | } // namespace webrtc |
| 255 | |
| 256 | int main(int argc, char* argv[]) { |
| 257 | return webrtc::do_main(argc, argv); |
| 258 | } |