setAudioMixingVolume abstract method

  1. @Deprecated('Deprecated since v3.54.1, use RTCAudioEffectPlayer.setVolume and RTCMediaPlayer.setVolume instead')
Future<void> setAudioMixingVolume({
  1. required int mixId,
  2. required int volume,
  3. required AudioMixingType type,
})

Adjusts the mixing volume, including audio files and PCM data.

volume is the ratio of the mixing volume to the original volume. The range is [0, 400]. The recommended range is [0, 100].

  • 0: Mute
  • 100: Original volume(default)
  • 400: Maximum volume (with overflow protection)

Make sure you have called RTCAudioMixingManager.preloadAudioMixing or RTCAudioMixingManager.startAudioMixing before calling this API.

Implementation

@Deprecated(
    'Deprecated since v3.54.1, use RTCAudioEffectPlayer.setVolume and RTCMediaPlayer.setVolume instead')
Future<void> setAudioMixingVolume({
  required int mixId,
  required int volume,
  required AudioMixingType type,
});