Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: webrtc/modules/audio_coding/main/acm2/acm_send_test_oldapi.h

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // Creates a Packet object from the last packet produced by ACM (and received 65 // Creates a Packet object from the last packet produced by ACM (and received
66 // through the SendData method as a callback). Ownership of the new Packet 66 // through the SendData method as a callback). Ownership of the new Packet
67 // object is transferred to the caller. 67 // object is transferred to the caller.
68 Packet* CreatePacket(); 68 Packet* CreatePacket();
69 69
70 SimulatedClock clock_; 70 SimulatedClock clock_;
71 rtc::scoped_ptr<AudioCodingModule> acm_; 71 rtc::scoped_ptr<AudioCodingModule> acm_;
72 InputAudioFile* audio_source_; 72 InputAudioFile* audio_source_;
73 int source_rate_hz_; 73 int source_rate_hz_;
74 const int input_block_size_samples_; 74 const size_t input_block_size_samples_;
75 AudioFrame input_frame_; 75 AudioFrame input_frame_;
76 bool codec_registered_; 76 bool codec_registered_;
77 int test_duration_ms_; 77 int test_duration_ms_;
78 // The following member variables are set whenever SendData() is called. 78 // The following member variables are set whenever SendData() is called.
79 FrameType frame_type_; 79 FrameType frame_type_;
80 int payload_type_; 80 int payload_type_;
81 uint32_t timestamp_; 81 uint32_t timestamp_;
82 uint16_t sequence_number_; 82 uint16_t sequence_number_;
83 std::vector<uint8_t> last_payload_vec_; 83 std::vector<uint8_t> last_payload_vec_;
84 bool data_to_send_; 84 bool data_to_send_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(AcmSendTestOldApi); 86 DISALLOW_COPY_AND_ASSIGN(AcmSendTestOldApi);
87 }; 87 };
88 88
89 } // namespace test 89 } // namespace test
90 } // namespace webrtc 90 } // namespace webrtc
91 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_SEND_TEST_H_ 91 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_SEND_TEST_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/main/acm2/acm_send_test.cc ('k') | webrtc/modules/audio_coding/main/acm2/acm_send_test_oldapi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698