getAudioProcessingState method
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 native state
after a LocalAudioTrack.setAudioProcessingOptions request. 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);
}