| 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 "PCMFile.h" | 11 #include "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 "testing/gtest/include/gtest/gtest.h" |
| 18 #include "webrtc/modules/interface/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), |
| 28 end_of_file_(false), | 28 end_of_file_(false), |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 void PCMFile::SaveStereo(bool is_stereo) { | 196 void PCMFile::SaveStereo(bool is_stereo) { |
| 197 save_stereo_ = is_stereo; | 197 save_stereo_ = is_stereo; |
| 198 } | 198 } |
| 199 | 199 |
| 200 void PCMFile::ReadStereo(bool is_stereo) { | 200 void PCMFile::ReadStereo(bool is_stereo) { |
| 201 read_stereo_ = is_stereo; | 201 read_stereo_ = is_stereo; |
| 202 } | 202 } |
| 203 | 203 |
| 204 } // namespace webrtc | 204 } // namespace webrtc |
| OLD | NEW |