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 // TODO(henrik.lundin): Refactor or replace all of this application. | 11 // TODO(henrik.lundin): Refactor or replace all of this application. |
12 | 12 |
13 /* header includes */ | 13 /* header includes */ |
14 #include <stdio.h> | 14 #include <stdio.h> |
15 #include <stdlib.h> | 15 #include <stdlib.h> |
16 #include <string.h> | 16 #include <string.h> |
17 #ifdef WIN32 | 17 #ifdef WIN32 |
18 #include <winsock2.h> | 18 #include <winsock2.h> |
19 #endif | 19 #endif |
20 #ifdef WEBRTC_LINUX | 20 #ifdef WEBRTC_LINUX |
21 #include <netinet/in.h> | 21 #include <netinet/in.h> |
22 #endif | 22 #endif |
23 | 23 |
24 #include <assert.h> | 24 #include <assert.h> |
25 | 25 |
26 #include <algorithm> | 26 #include <algorithm> |
27 | 27 |
28 #include "webrtc/rtc_base/checks.h" | 28 #include "webrtc/base/checks.h" |
29 #include "webrtc/typedefs.h" | 29 #include "webrtc/typedefs.h" |
30 | 30 |
31 // needed for NetEqDecoder | 31 // needed for NetEqDecoder |
32 #include "webrtc/modules/audio_coding/neteq/audio_decoder_impl.h" | 32 #include "webrtc/modules/audio_coding/neteq/audio_decoder_impl.h" |
33 #include "webrtc/modules/audio_coding/neteq/include/neteq.h" | 33 #include "webrtc/modules/audio_coding/neteq/include/neteq.h" |
34 | 34 |
35 /************************/ | 35 /************************/ |
36 /* Define payload types */ | 36 /* Define payload types */ |
37 /************************/ | 37 /************************/ |
38 | 38 |
(...skipping 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1789 memmove(ptrL + stride, ptrL, ptrR - ptrL); | 1789 memmove(ptrL + stride, ptrL, ptrR - ptrL); |
1790 | 1790 |
1791 // copy from temp to left pointer | 1791 // copy from temp to left pointer |
1792 memcpy(ptrL, temp, stride); | 1792 memcpy(ptrL, temp, stride); |
1793 | 1793 |
1794 // advance pointers | 1794 // advance pointers |
1795 ptrL += stride * 2; | 1795 ptrL += stride * 2; |
1796 ptrR += stride; | 1796 ptrR += stride; |
1797 } | 1797 } |
1798 } | 1798 } |
OLD | NEW |