| OLD | NEW |
| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 int default_bitrate_bps; | 113 int default_bitrate_bps; |
| 114 int min_bitrate_bps; | 114 int min_bitrate_bps; |
| 115 int max_bitrate_bps; | 115 int max_bitrate_bps; |
| 116 | 116 |
| 117 bool allow_comfort_noise = true; // This codec can be used with an external | 117 bool allow_comfort_noise = true; // This codec can be used with an external |
| 118 // comfort noise generator. | 118 // comfort noise generator. |
| 119 bool supports_network_adaption = false; // This codec can adapt to varying | 119 bool supports_network_adaption = false; // This codec can adapt to varying |
| 120 // network conditions. | 120 // network conditions. |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 std::ostream& operator<<(std::ostream& os, const AudioCodecInfo& aci); |
| 124 |
| 123 // AudioCodecSpec ties an audio format to specific information about the codec | 125 // AudioCodecSpec ties an audio format to specific information about the codec |
| 124 // and its implementation. | 126 // and its implementation. |
| 125 struct AudioCodecSpec { | 127 struct AudioCodecSpec { |
| 126 bool operator==(const AudioCodecSpec& b) const { | 128 bool operator==(const AudioCodecSpec& b) const { |
| 127 return format == b.format && info == b.info; | 129 return format == b.format && info == b.info; |
| 128 } | 130 } |
| 129 | 131 |
| 130 bool operator!=(const AudioCodecSpec& b) const { return !(*this == b); } | 132 bool operator!=(const AudioCodecSpec& b) const { return !(*this == b); } |
| 131 | 133 |
| 132 SdpAudioFormat format; | 134 SdpAudioFormat format; |
| 133 AudioCodecInfo info; | 135 AudioCodecInfo info; |
| 134 }; | 136 }; |
| 135 | 137 |
| 138 std::ostream& operator<<(std::ostream& os, const AudioCodecSpec& acs); |
| 139 |
| 136 } // namespace webrtc | 140 } // namespace webrtc |
| 137 | 141 |
| 138 #endif // WEBRTC_API_AUDIO_CODECS_AUDIO_FORMAT_H_ | 142 #endif // WEBRTC_API_AUDIO_CODECS_AUDIO_FORMAT_H_ |
| OLD | NEW |