Paulina Hensman | 11b34f4 | 2018-04-09 14:24:52 +0200 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2018 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | #ifndef CALL_CALL_CONFIG_H_ |
| 11 | #define CALL_CALL_CONFIG_H_ |
| 12 | |
| 13 | #include "api/fec_controller.h" |
| 14 | #include "api/rtcerror.h" |
| 15 | #include "call/audio_state.h" |
| 16 | #include "call/bitrate_constraints.h" |
| 17 | #include "rtc_base/platform_file.h" |
| 18 | |
| 19 | namespace webrtc { |
| 20 | |
| 21 | class AudioProcessing; |
| 22 | class RtcEventLog; |
| 23 | |
| 24 | struct CallConfig { |
| 25 | explicit CallConfig(RtcEventLog* event_log); |
| 26 | ~CallConfig(); |
| 27 | |
| 28 | RTC_DEPRECATED static constexpr int kDefaultStartBitrateBps = 300000; |
| 29 | |
| 30 | // Bitrate config used until valid bitrate estimates are calculated. Also |
| 31 | // used to cap total bitrate used. This comes from the remote connection. |
| 32 | BitrateConstraints bitrate_config; |
| 33 | |
| 34 | // AudioState which is possibly shared between multiple calls. |
| 35 | // TODO(solenberg): Change this to a shared_ptr once we can use C++11. |
| 36 | rtc::scoped_refptr<AudioState> audio_state; |
| 37 | |
| 38 | // Audio Processing Module to be used in this call. |
| 39 | // TODO(solenberg): Change this to a shared_ptr once we can use C++11. |
| 40 | AudioProcessing* audio_processing = nullptr; |
| 41 | |
| 42 | // RtcEventLog to use for this call. Required. |
| 43 | // Use webrtc::RtcEventLog::CreateNull() for a null implementation. |
| 44 | RtcEventLog* event_log = nullptr; |
| 45 | |
| 46 | // FecController to use for this call. |
| 47 | FecControllerFactoryInterface* fec_controller_factory = nullptr; |
| 48 | }; |
| 49 | |
| 50 | } // namespace webrtc |
| 51 | |
| 52 | #endif // CALL_CALL_CONFIG_H_ |