| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include "webrtc/modules/audio_coding/test/PCMFile.h" | 11 #include "webrtc/modules/audio_coding/test/PCMFile.h" |
| 12 | 12 |
| 13 #include <ctype.h> | 13 #include <ctype.h> |
| 14 #include <stdio.h> | 14 #include <stdio.h> |
| 15 #include <string.h> | 15 #include <string.h> |
| 16 | 16 |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "webrtc/test/gtest.h" |
| 18 #include "webrtc/modules/include/module_common_types.h" | 18 #include "webrtc/modules/include/module_common_types.h" |
| 19 | 19 |
| 20 namespace webrtc { | 20 namespace webrtc { |
| 21 | 21 |
| 22 #define MAX_FILE_NAME_LENGTH_BYTE 500 | 22 #define MAX_FILE_NAME_LENGTH_BYTE 500 |
| 23 | 23 |
| 24 PCMFile::PCMFile() | 24 PCMFile::PCMFile() |
| 25 : pcm_file_(NULL), | 25 : pcm_file_(NULL), |
| 26 samples_10ms_(160), | 26 samples_10ms_(160), |
| 27 frequency_(16000), | 27 frequency_(16000), |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 218 |
| 219 void PCMFile::ReadStereo(bool is_stereo) { | 219 void PCMFile::ReadStereo(bool is_stereo) { |
| 220 read_stereo_ = is_stereo; | 220 read_stereo_ = is_stereo; |
| 221 } | 221 } |
| 222 | 222 |
| 223 void PCMFile::SetNum10MsBlocksToRead(int value) { | 223 void PCMFile::SetNum10MsBlocksToRead(int value) { |
| 224 num_10ms_blocks_to_read_ = rtc::Optional<int>(value); | 224 num_10ms_blocks_to_read_ = rtc::Optional<int>(value); |
| 225 } | 225 } |
| 226 | 226 |
| 227 } // namespace webrtc | 227 } // namespace webrtc |
| OLD | NEW |