G711: Make input arrays const and use uint8_t[] for byte arrays
BUG=909 R=henrik.lundin@webrtc.org Review URL: https://webrtc-codereview.appspot.com/39809004 Cr-Commit-Position: refs/heads/master@{#8294} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8294 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -29,9 +29,9 @@ ACMPCMA::~ACMPCMA() { return; }
|
||||
|
||||
int16_t ACMPCMA::InternalEncode(uint8_t* bitstream,
|
||||
int16_t* bitstream_len_byte) {
|
||||
*bitstream_len_byte = WebRtcG711_EncodeA(
|
||||
&in_audio_[in_audio_ix_read_], frame_len_smpl_ * num_channels_,
|
||||
reinterpret_cast<int16_t*>(bitstream));
|
||||
*bitstream_len_byte =
|
||||
WebRtcG711_EncodeA(&in_audio_[in_audio_ix_read_],
|
||||
frame_len_smpl_ * num_channels_, bitstream);
|
||||
// Increment the read index this tell the caller that how far
|
||||
// we have gone forward in reading the audio buffer.
|
||||
in_audio_ix_read_ += frame_len_smpl_ * num_channels_;
|
||||
|
||||
@ -29,9 +29,9 @@ ACMPCMU::~ACMPCMU() {}
|
||||
|
||||
int16_t ACMPCMU::InternalEncode(uint8_t* bitstream,
|
||||
int16_t* bitstream_len_byte) {
|
||||
*bitstream_len_byte = WebRtcG711_EncodeU(
|
||||
&in_audio_[in_audio_ix_read_], frame_len_smpl_ * num_channels_,
|
||||
reinterpret_cast<int16_t*>(bitstream));
|
||||
*bitstream_len_byte =
|
||||
WebRtcG711_EncodeU(&in_audio_[in_audio_ix_read_],
|
||||
frame_len_smpl_ * num_channels_, bitstream);
|
||||
|
||||
// Increment the read index this tell the caller that how far
|
||||
// we have gone forward in reading the audio buffer.
|
||||
|
||||
Reference in New Issue
Block a user