LocalAudioMixerConfiguration

The configurations for mixing the lcoal audio.

class LocalAudioMixerConfiguration {
  const LocalAudioMixerConfiguration(
      {this.streamCount, this.audioInputStreams, this.syncWithLocalMic});

  @JsonKey(name: 'streamCount')
  final int? streamCount;

  @JsonKey(name: 'audioInputStreams')
  final List<MixedAudioStream>? audioInputStreams;

  @JsonKey(name: 'syncWithLocalMic')
  final bool? syncWithLocalMic;

  factory LocalAudioMixerConfiguration.fromJson(Map<String, dynamic> json) =>
      _$LocalAudioMixerConfigurationFromJson(json);

  Map<String, dynamic> toJson() => _$LocalAudioMixerConfigurationToJson(this);
}

Attributes

streamCount
The number of the audio streams that are mixed locally.
audioInputStreams
The source of the audio streams that are mixed locally. See MixedAudioStream.
syncWithLocalMic
Whether the mxied audio stream uses the timestamp of the audio frames captured by the local microphone.
  • true: (Default) Yes. Set to this value if you want all locally captured audio streams synchronized.
  • false: No. The SDK uses the timestamp of the audio frames at the time when they are mixed.