stop method
Closes the tap. Does nothing when already idle. state settles to XAudioCaptureState.idle behind the frames already in flight, so it can still read XAudioCaptureState.running as this returns.
Implementation
@override
Future<void> stop() => _enqueue(() async {
if (!supported) return;
try {
await _methods.invokeMethod<void>('stop');
} on PlatformException catch (e) {
throw XAudioCaptureException(e.code, e.message);
}
});