| 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 "webrtc/common_types.h" | 11 #include "webrtc/common_types.h" | 
| 12 #include "webrtc/modules/interface/module_common_types.h" | 12 #include "webrtc/modules/include/module_common_types.h" | 
| 13 #include "webrtc/modules/utility/source/coder.h" | 13 #include "webrtc/modules/utility/source/coder.h" | 
| 14 | 14 | 
| 15 namespace webrtc { | 15 namespace webrtc { | 
| 16 AudioCoder::AudioCoder(uint32_t instanceID) | 16 AudioCoder::AudioCoder(uint32_t instanceID) | 
| 17     : _acm(AudioCodingModule::Create(instanceID)), | 17     : _acm(AudioCodingModule::Create(instanceID)), | 
| 18       _receiveCodec(), | 18       _receiveCodec(), | 
| 19       _encodeTimestamp(0), | 19       _encodeTimestamp(0), | 
| 20       _encodedData(NULL), | 20       _encodedData(NULL), | 
| 21       _encodedLengthInBytes(0), | 21       _encodedLengthInBytes(0), | 
| 22       _decodeTimestamp(0) | 22       _decodeTimestamp(0) | 
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 103     uint32_t  /* timeStamp */, | 103     uint32_t  /* timeStamp */, | 
| 104     const uint8_t*  payloadData, | 104     const uint8_t*  payloadData, | 
| 105     size_t  payloadSize, | 105     size_t  payloadSize, | 
| 106     const RTPFragmentationHeader* /* fragmentation*/) | 106     const RTPFragmentationHeader* /* fragmentation*/) | 
| 107 { | 107 { | 
| 108     memcpy(_encodedData,payloadData,sizeof(uint8_t) * payloadSize); | 108     memcpy(_encodedData,payloadData,sizeof(uint8_t) * payloadSize); | 
| 109     _encodedLengthInBytes = payloadSize; | 109     _encodedLengthInBytes = payloadSize; | 
| 110     return 0; | 110     return 0; | 
| 111 } | 111 } | 
| 112 }  // namespace webrtc | 112 }  // namespace webrtc | 
| OLD | NEW | 
|---|