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

Side by Side Diff: webrtc/audio/audio_send_stream.h

Issue 2397573006: Using AudioOption to enable 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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 webrtc::AudioSendStream::Stats GetStats() const override; 49 webrtc::AudioSendStream::Stats GetStats() const override;
50 50
51 void SignalNetworkState(NetworkState state); 51 void SignalNetworkState(NetworkState state);
52 bool DeliverRtcp(const uint8_t* packet, size_t length); 52 bool DeliverRtcp(const uint8_t* packet, size_t length);
53 53
54 // Implements BitrateAllocatorObserver. 54 // Implements BitrateAllocatorObserver.
55 uint32_t OnBitrateUpdated(uint32_t bitrate_bps, 55 uint32_t OnBitrateUpdated(uint32_t bitrate_bps,
56 uint8_t fraction_loss, 56 uint8_t fraction_loss,
57 int64_t rtt) override; 57 int64_t rtt) override;
58 58
59 bool EnableAudioNetworkAdaptor(const std::string& config_string) override;
60
61 void DisableAudioNetworkAdaptor() override;
62
63 void SetReceiverFrameLengthRange(int min_frame_length_ms,
64 int max_frame_length_ms) override;
65
59 const webrtc::AudioSendStream::Config& config() const; 66 const webrtc::AudioSendStream::Config& config() const;
60 67
61 private: 68 private:
62 VoiceEngine* voice_engine() const; 69 VoiceEngine* voice_engine() const;
63 70
64 rtc::ThreadChecker thread_checker_; 71 rtc::ThreadChecker thread_checker_;
65 rtc::TaskQueue* worker_queue_; 72 rtc::TaskQueue* worker_queue_;
66 const webrtc::AudioSendStream::Config config_; 73 const webrtc::AudioSendStream::Config config_;
67 rtc::scoped_refptr<webrtc::AudioState> audio_state_; 74 rtc::scoped_refptr<webrtc::AudioState> audio_state_;
68 std::unique_ptr<voe::ChannelProxy> channel_proxy_; 75 std::unique_ptr<voe::ChannelProxy> channel_proxy_;
69 76
70 BitrateAllocator* const bitrate_allocator_; 77 BitrateAllocator* const bitrate_allocator_;
71 78
72 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream); 79 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(AudioSendStream);
73 }; 80 };
74 } // namespace internal 81 } // namespace internal
75 } // namespace webrtc 82 } // namespace webrtc
76 83
77 #endif // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_ 84 #endif // WEBRTC_AUDIO_AUDIO_SEND_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698