getAudioProcessingState method

Future<AudioProcessingState?> getAudioProcessingState()

Diagnostic snapshot of the resolved audio processing state.

The audio processing module is owned by the native peer connection factory and shared engine-wide, so this reflects what is actually applied across the engine rather than any single track — use it to verify what a LocalAudioTrack.setAudioProcessingOptions request resolved to. Returns null when the native side cannot provide it.

Implementation

Future<AudioProcessingState?> getAudioProcessingState() async {
  final response = await Native.getAudioProcessingState();
  if (response == null) return null;
  return AudioProcessingState.fromMap(response);
}