| 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 <stdio.h> | 11 #include <stdio.h> |
| 12 #include <string.h> | 12 #include <string.h> |
| 13 | 13 |
| 14 #include <math.h> | 14 #include <math.h> |
| 15 | 15 |
| 16 #include "webrtc/common_types.h" | 16 #include "webrtc/common_types.h" |
| 17 #include "webrtc/modules/audio_coding/main/test/SpatialAudio.h" | 17 #include "webrtc/modules/audio_coding/test/SpatialAudio.h" |
| 18 #include "webrtc/system_wrappers/include/trace.h" | 18 #include "webrtc/system_wrappers/include/trace.h" |
| 19 #include "webrtc/system_wrappers/include/trace.h" | 19 #include "webrtc/system_wrappers/include/trace.h" |
| 20 #include "webrtc/test/testsupport/fileutils.h" | 20 #include "webrtc/test/testsupport/fileutils.h" |
| 21 | 21 |
| 22 namespace webrtc { | 22 namespace webrtc { |
| 23 | 23 |
| 24 #define NUM_PANN_COEFFS 10 | 24 #define NUM_PANN_COEFFS 10 |
| 25 | 25 |
| 26 SpatialAudio::SpatialAudio(int testMode) | 26 SpatialAudio::SpatialAudio(int testMode) |
| 27 : _acmLeft(AudioCodingModule::Create(1)), | 27 : _acmLeft(AudioCodingModule::Create(1)), |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 _inFile.Read10MsData(audioFrame); | 187 _inFile.Read10MsData(audioFrame); |
| 188 CHECK_ERROR(_acmLeft->Add10MsData(audioFrame)); | 188 CHECK_ERROR(_acmLeft->Add10MsData(audioFrame)); |
| 189 | 189 |
| 190 CHECK_ERROR(_acmReceiver->PlayoutData10Ms(outFileSampFreq, &audioFrame)); | 190 CHECK_ERROR(_acmReceiver->PlayoutData10Ms(outFileSampFreq, &audioFrame)); |
| 191 _outFile.Write10MsData(audioFrame); | 191 _outFile.Write10MsData(audioFrame); |
| 192 } | 192 } |
| 193 _inFile.Rewind(); | 193 _inFile.Rewind(); |
| 194 } | 194 } |
| 195 | 195 |
| 196 } // namespace webrtc | 196 } // namespace webrtc |
| OLD | NEW |