| 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 | |
| 61 namespace cricket { | 57 namespace cricket { |
| 62 | 58 |
| 63 static const int kMaxNumPacketSize = 6; | 59 static const int kMaxNumPacketSize = 6; |
| 64 struct CodecPref { | 60 struct CodecPref { |
| 65 const char* name; | 61 const char* name; |
| 66 int clockrate; | 62 int clockrate; |
| 67 int channels; | 63 int channels; |
| 68 int payload_type; | 64 int payload_type; |
| 69 bool is_multi_rate; | 65 bool is_multi_rate; |
| 70 int packet_sizes_ms[kMaxNumPacketSize]; | 66 int packet_sizes_ms[kMaxNumPacketSize]; |
| (...skipping 3580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3651 | 3647 |
| 3652 int WebRtcSoundclipStream::Rewind() { | 3648 int WebRtcSoundclipStream::Rewind() { |
| 3653 mem_.Rewind(); | 3649 mem_.Rewind(); |
| 3654 // Return -1 to keep VoiceEngine from looping. | 3650 // Return -1 to keep VoiceEngine from looping. |
| 3655 return (loop_) ? 0 : -1; | 3651 return (loop_) ? 0 : -1; |
| 3656 } | 3652 } |
| 3657 | 3653 |
| 3658 } // namespace cricket | 3654 } // namespace cricket |
| 3659 | 3655 |
| 3660 #endif // HAVE_WEBRTC_VOICE | 3656 #endif // HAVE_WEBRTC_VOICE |
| OLD | NEW |