henrik.lundin@webrtc.org | 817e50d | 2014-12-11 10:47:19 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
| 11 | #include "webrtc/modules/audio_coding/codecs/pcm16b/include/audio_encoder_pcm16b.h" |
| 12 | #include "webrtc/modules/audio_coding/codecs/pcm16b/include/pcm16b.h" |
| 13 | |
| 14 | namespace webrtc { |
| 15 | |
| 16 | int16_t AudioEncoderPcm16B::EncodeCall(const int16_t* audio, |
| 17 | size_t input_len, |
| 18 | uint8_t* encoded) { |
| 19 | return WebRtcPcm16b_Encode(audio, static_cast<int16_t>(input_len), encoded); |
| 20 | } |
| 21 | |
| 22 | } // namespace webrtc |