AudioEncoder: num_10ms_frames_per_packet -> Num10MsFramesInNextPacket
Rename this accessor function to reflect its new, slightly changed meaning. The reason for the change is that some codecs (iSAC) vary the number of 10 ms frames from packet to packet, and so can't return a truly constant value. BUG=3926 R=henrik.lundin@webrtc.org Review URL: https://webrtc-codereview.appspot.com/31849004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7556 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -142,7 +142,7 @@ class AudioDecoderTest : public ::testing::Test {
|
||||
size_t enc_len_bytes = 0;
|
||||
scoped_ptr<int16_t[]> interleaved_input(
|
||||
new int16_t[channels_ * input_len_samples]);
|
||||
for (int i = 0; i < audio_encoder_->num_10ms_frames_per_packet(); ++i) {
|
||||
for (int i = 0; i < audio_encoder_->Num10MsFramesInNextPacket(); ++i) {
|
||||
EXPECT_EQ(0u, enc_len_bytes);
|
||||
|
||||
// Duplicate the mono input signal to however many channels the test
|
||||
|
Reference in New Issue
Block a user