AudioEncoder subclass for G722
BUG=3926 R=henrik.lundin@webrtc.org, kjellander@webrtc.org Review URL: https://webrtc-codereview.appspot.com/30259004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7779 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -115,11 +115,11 @@ int16_t ACMG722::InternalEncode(uint8_t* bitstream,
|
||||
}
|
||||
len_in_bytes = WebRtcG722_Encode(
|
||||
encoder_inst_ptr_, left_channel, frame_len_smpl_,
|
||||
reinterpret_cast<int16_t*>(out_left));
|
||||
out_left);
|
||||
len_in_bytes += WebRtcG722_Encode(encoder_inst_ptr_right_,
|
||||
right_channel,
|
||||
frame_len_smpl_,
|
||||
reinterpret_cast<int16_t*>(out_right));
|
||||
out_right);
|
||||
*bitstream_len_byte = len_in_bytes;
|
||||
|
||||
// Interleave the 4 bits per sample from left and right channel
|
||||
@ -130,7 +130,7 @@ int16_t ACMG722::InternalEncode(uint8_t* bitstream,
|
||||
} else {
|
||||
*bitstream_len_byte = WebRtcG722_Encode(
|
||||
encoder_inst_ptr_, &in_audio_[in_audio_ix_read_], frame_len_smpl_,
|
||||
reinterpret_cast<int16_t*>(bitstream));
|
||||
bitstream);
|
||||
}
|
||||
|
||||
// increment the read index this tell the caller how far
|
||||
|
||||
Reference in New Issue
Block a user