OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #include "webrtc/base/base64.h" | 47 #include "webrtc/base/base64.h" |
48 #include "webrtc/base/byteorder.h" | 48 #include "webrtc/base/byteorder.h" |
49 #include "webrtc/base/common.h" | 49 #include "webrtc/base/common.h" |
50 #include "webrtc/base/helpers.h" | 50 #include "webrtc/base/helpers.h" |
51 #include "webrtc/base/logging.h" | 51 #include "webrtc/base/logging.h" |
52 #include "webrtc/base/stringencode.h" | 52 #include "webrtc/base/stringencode.h" |
53 #include "webrtc/base/stringutils.h" | 53 #include "webrtc/base/stringutils.h" |
54 #include "webrtc/common.h" | 54 #include "webrtc/common.h" |
55 #include "webrtc/modules/audio_processing/include/audio_processing.h" | 55 #include "webrtc/modules/audio_processing/include/audio_processing.h" |
56 | 56 |
| 57 #ifdef WIN32 |
| 58 #include <objbase.h> // NOLINT |
| 59 #endif |
| 60 |
57 namespace cricket { | 61 namespace cricket { |
58 | 62 |
59 static const int kMaxNumPacketSize = 6; | 63 static const int kMaxNumPacketSize = 6; |
60 struct CodecPref { | 64 struct CodecPref { |
61 const char* name; | 65 const char* name; |
62 int clockrate; | 66 int clockrate; |
63 int channels; | 67 int channels; |
64 int payload_type; | 68 int payload_type; |
65 bool is_multi_rate; | 69 bool is_multi_rate; |
66 int packet_sizes_ms[kMaxNumPacketSize]; | 70 int packet_sizes_ms[kMaxNumPacketSize]; |
(...skipping 3580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3647 | 3651 |
3648 int WebRtcSoundclipStream::Rewind() { | 3652 int WebRtcSoundclipStream::Rewind() { |
3649 mem_.Rewind(); | 3653 mem_.Rewind(); |
3650 // Return -1 to keep VoiceEngine from looping. | 3654 // Return -1 to keep VoiceEngine from looping. |
3651 return (loop_) ? 0 : -1; | 3655 return (loop_) ? 0 : -1; |
3652 } | 3656 } |
3653 | 3657 |
3654 } // namespace cricket | 3658 } // namespace cricket |
3655 | 3659 |
3656 #endif // HAVE_WEBRTC_VOICE | 3660 #endif // HAVE_WEBRTC_VOICE |
OLD | NEW |