Skip to content

Commit 685fe9e

Browse files
authored
Add autoGainControl field to AudioConstraints (#156)
1 parent 041267d commit 685fe9e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ All user visible changes to this project will be documented in this file. This p
1717
- Support for multiple input audio devices usage at one time on desktop platforms. ([#145])
1818
- `MediaStreamTrack.isAudioLevelAvailable` function and `MediaStreamTrack.onAudioLevelChanged` callback for detecting input audio level changes of local `MediaStreamTrack`. ([#149])
1919
- `RtpSender.getCapabilities()` and `RtpTransceiver.setCodecPreferences()` operating by `RtpCapabilities`, `RtpHeaderExtensionCapability` and `RtpCodecCapability`. ([#137])
20+
- `AudioConstraints.autoGainControl` field. ([#156])
2021

2122
### Changed
2223

@@ -40,6 +41,7 @@ All user visible changes to this project will be documented in this file. This p
4041
[#149]: https://github.com/instrumentisto/medea-flutter-webrtc/pull/149
4142
[#151]: https://github.com/instrumentisto/medea-flutter-webrtc/pull/151
4243
[#155]: https://github.com/instrumentisto/medea-flutter-webrtc/pull/155
44+
[#156]: https://github.com/instrumentisto/medea-flutter-webrtc/pull/156
4345
[123.0.6312.105]: https://github.com/instrumentisto/libwebrtc-bin/releases/tag/123.0.6312.105
4446

4547

lib/src/model/constraints.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,16 @@ abstract class DeviceMediaConstraints {
7373

7474
/// [DeviceMediaConstraints] for audio devices.
7575
class AudioConstraints implements DeviceMediaConstraints {
76+
/// Identifier of the device generating the content of the
77+
/// [MediaStreamTrack].
78+
///
79+
/// First device will be chosen if an empty [String] is provided.
7680
String? deviceId;
7781

82+
/// Indicator whether to automatically manage changes in the volume of its
83+
/// source media to maintain a steady overall volume level.
84+
bool? autoGainControl;
85+
7886
/// Converts this model to the [Map] expected by Flutter.
7987
@override
8088
Map<String, dynamic> toMap() {

0 commit comments

Comments
 (0)