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

Side by Side Diff: webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adaptor_impl.h

Issue 2364473005: Hooking up target audio bitrate to audio network adaptor. (Closed)
Patch Set: Created 4 years, 2 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) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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 30 matching lines...) Expand all
41 std::unique_ptr<DebugDumpWriter> debug_dump_writer = nullptr); 41 std::unique_ptr<DebugDumpWriter> debug_dump_writer = nullptr);
42 42
43 ~AudioNetworkAdaptorImpl() override; 43 ~AudioNetworkAdaptorImpl() override;
44 44
45 void SetUplinkBandwidth(int uplink_bandwidth_bps) override; 45 void SetUplinkBandwidth(int uplink_bandwidth_bps) override;
46 46
47 void SetUplinkPacketLossFraction(float uplink_packet_loss_fraction) override; 47 void SetUplinkPacketLossFraction(float uplink_packet_loss_fraction) override;
48 48
49 void SetRtt(int rtt_ms) override; 49 void SetRtt(int rtt_ms) override;
50 50
51 void SetTargetAudioBitrate(int target_audio_bitrate_bps) override;
52
51 void SetReceiverFrameLengthRange(int min_frame_length_ms, 53 void SetReceiverFrameLengthRange(int min_frame_length_ms,
52 int max_frame_length_ms) override; 54 int max_frame_length_ms) override;
53 55
54 EncoderRuntimeConfig GetEncoderRuntimeConfig() override; 56 EncoderRuntimeConfig GetEncoderRuntimeConfig() override;
55 57
56 void StartDebugDump(FILE* file_handle) override; 58 void StartDebugDump(FILE* file_handle) override;
57 59
58 void StopDebugDump() override; 60 void StopDebugDump() override;
59 61
60 private: 62 private:
61 void DumpNetworkMetrics(); 63 void DumpNetworkMetrics();
62 64
63 const Config config_; 65 const Config config_;
64 66
65 std::unique_ptr<ControllerManager> controller_manager_; 67 std::unique_ptr<ControllerManager> controller_manager_;
66 68
67 std::unique_ptr<DebugDumpWriter> debug_dump_writer_; 69 std::unique_ptr<DebugDumpWriter> debug_dump_writer_;
68 70
69 Controller::NetworkMetrics last_metrics_; 71 Controller::NetworkMetrics last_metrics_;
70 72
71 RTC_DISALLOW_COPY_AND_ASSIGN(AudioNetworkAdaptorImpl); 73 RTC_DISALLOW_COPY_AND_ASSIGN(AudioNetworkAdaptorImpl);
72 }; 74 };
73 75
74 } // namespace webrtc 76 } // namespace webrtc
75 77
76 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_AUDIO_NETWORK_ADAPT OR_IMPL_H_ 78 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_AUDIO_NETWORK_ADAPT OR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698