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

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

Issue 1225133003: Update audio code to use size_t more correctly, (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Review comment Created 5 years, 5 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 // Creates a Packet object from the last packet produced by ACM (and received 57 // Creates a Packet object from the last packet produced by ACM (and received
58 // through the SendData method as a callback). Ownership of the new Packet 58 // through the SendData method as a callback). Ownership of the new Packet
59 // object is transferred to the caller. 59 // object is transferred to the caller.
60 Packet* CreatePacket(); 60 Packet* CreatePacket();
61 61
62 SimulatedClock clock_; 62 SimulatedClock clock_;
63 rtc::scoped_ptr<AudioCoding> acm_; 63 rtc::scoped_ptr<AudioCoding> acm_;
64 InputAudioFile* audio_source_; 64 InputAudioFile* audio_source_;
65 int source_rate_hz_; 65 int source_rate_hz_;
66 const int input_block_size_samples_; 66 const size_t input_block_size_samples_;
67 AudioFrame input_frame_; 67 AudioFrame input_frame_;
68 bool codec_registered_; 68 bool codec_registered_;
69 int test_duration_ms_; 69 int test_duration_ms_;
70 // The following member variables are set whenever SendData() is called. 70 // The following member variables are set whenever SendData() is called.
71 FrameType frame_type_; 71 FrameType frame_type_;
72 int payload_type_; 72 int payload_type_;
73 uint32_t timestamp_; 73 uint32_t timestamp_;
74 uint16_t sequence_number_; 74 uint16_t sequence_number_;
75 std::vector<uint8_t> last_payload_vec_; 75 std::vector<uint8_t> last_payload_vec_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(AcmSendTest); 77 DISALLOW_COPY_AND_ASSIGN(AcmSendTest);
78 }; 78 };
79 79
80 } // namespace test 80 } // namespace test
81 } // namespace webrtc 81 } // namespace webrtc
82 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_SEND_TEST_H_ 82 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_SEND_TEST_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/main/acm2/acm_resampler.cc ('k') | webrtc/modules/audio_coding/main/acm2/acm_send_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698