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 |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
315 bool usingStereo = false; | 315 bool usingStereo = false; |
316 size_t stereoMode = 0; | 316 size_t stereoMode = 0; |
317 size_t numChannels = 1; | 317 size_t numChannels = 1; |
318 | 318 |
319 /* check number of parameters */ | 319 /* check number of parameters */ |
320 if ((argc != 6) && (argc != 7)) { | 320 if ((argc != 6) && (argc != 7)) { |
321 /* print help text and exit */ | 321 /* print help text and exit */ |
322 printf("Application to encode speech into an RTP stream.\n"); | 322 printf("Application to encode speech into an RTP stream.\n"); |
323 printf("The program reads a PCM file and encodes is using the specified " | 323 printf("The program reads a PCM file and encodes is using the specified " |
324 "codec.\n"); | 324 "codec.\n"); |
325 printf("The coded speech is packetized in RTP packest and written to the " | 325 printf( |
aleloi
2016/08/01 14:32:21
Noticed spelling mistake when I did a test run.
| |
326 "output file.\n"); | 326 "The coded speech is packetized in RTP packets and written to the " |
327 "output file.\n"); | |
327 printf("The format of the RTP stream file is simlilar to that of " | 328 printf("The format of the RTP stream file is simlilar to that of " |
328 "rtpplay,\n"); | 329 "rtpplay,\n"); |
329 printf("but with the receive time euqal to 0 for all packets.\n"); | 330 printf("but with the receive time euqal to 0 for all packets.\n"); |
330 printf("Usage:\n\n"); | 331 printf("Usage:\n\n"); |
331 printf("%s PCMfile RTPfile frameLen codec useVAD bitrate\n", argv[0]); | 332 printf("%s PCMfile RTPfile frameLen codec useVAD bitrate\n", argv[0]); |
332 printf("where:\n"); | 333 printf("where:\n"); |
333 | 334 |
334 printf("PCMfile : PCM speech input file\n\n"); | 335 printf("PCMfile : PCM speech input file\n\n"); |
335 | 336 |
336 printf("RTPfile : RTP stream output file\n\n"); | 337 printf("RTPfile : RTP stream output file\n\n"); |
(...skipping 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1875 memmove(ptrL + stride, ptrL, ptrR - ptrL); | 1876 memmove(ptrL + stride, ptrL, ptrR - ptrL); |
1876 | 1877 |
1877 // copy from temp to left pointer | 1878 // copy from temp to left pointer |
1878 memcpy(ptrL, temp, stride); | 1879 memcpy(ptrL, temp, stride); |
1879 | 1880 |
1880 // advance pointers | 1881 // advance pointers |
1881 ptrL += stride * 2; | 1882 ptrL += stride * 2; |
1882 ptrR += stride; | 1883 ptrR += stride; |
1883 } | 1884 } |
1884 } | 1885 } |
OLD | NEW |